:root {
  --navy: #1f3a6e;
  --navy-dark: #162b54;
  --blue: #4a6fb0;
  --blue-soft: #e8eef9;
  --yellow: #fcc72c;
  --yellow-dark: #f2a81d;
  --cream: #fbf8f2;
  --red: #e8414f;
  --white: #ffffff;
  --text: #1f2a44;
  --muted: #6b7591;
  --radius: 22px;
  --shadow: 0 18px 40px -18px rgba(31, 58, 110, .45);
  --font-display: "Fredoka", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --page-pad: 16px;
  --demo-h: 0px;
  --deck-h: max(calc(100dvh - var(--demo-h) - 2 * var(--page-pad) - 34px), 520px);
  --deck-w: clamp(400px, calc(var(--deck-h) * .72), 680px);
}

* { box-sizing: border-box; }

html { background: var(--cream); }

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-body);
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
}

/* fixed, so the gradient doesn't end when scrolling */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(circle at 12% 18%, rgba(252, 199, 44, .18), transparent 40%),
    radial-gradient(circle at 88% 82%, rgba(74, 111, 176, .16), transparent 45%);
  pointer-events: none;
}

a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }

.ms {
  font-family: "Material Symbols Rounded";
  font-weight: normal; font-style: normal;
  font-size: 1.4em; line-height: 1;
  display: inline-block;
  letter-spacing: normal; text-transform: none; white-space: nowrap;
  font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
}
.ms--fill { font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24; }

.icon-btn {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border: 0; border-radius: 14px;
  background: transparent; color: var(--navy);
}
.icon-btn:hover { background: var(--blue-soft); }

.layout {
  display: grid;
  grid-template-columns: 300px minmax(0, var(--deck-w));
  justify-content: center;
  gap: 48px;
  min-height: calc(100dvh - var(--demo-h));
  padding: var(--page-pad) 24px;
}

.sidebar {
  display: flex; flex-direction: column; gap: 20px;
  position: sticky; top: var(--page-pad);
  padding-top: 16px;
  align-self: start;
}
.sidebar__close { display: none; }
.sidebar__logo { width: 100%; height: auto; }
.logo-link { display: block; transition: transform .2s; }
.logo-link:hover { transform: scale(1.02); }

.panel {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.me { text-align: center; padding: 28px 24px 8px; }
.me__avatar {
  width: 112px; height: 112px; margin: 0 auto 12px;
  border-radius: 50%;
  border: 4px solid var(--yellow);
  box-shadow: 0 0 0 4px var(--white), 0 0 0 7px var(--blue-soft);
  object-fit: cover;
}
.me__name { font: 600 1.4rem var(--font-display); color: var(--navy); }
.me__handle { color: var(--muted); font-size: .9rem; }

.nav { display: flex; flex-direction: column; padding: 16px 20px 20px; }
.nav hr { width: 100%; border: 0; border-top: 2px dashed var(--blue-soft); margin: 10px 0; }
.nav__item {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 14px;
  border-radius: 14px;
  text-decoration: none;
  font: 500 1.1rem var(--font-display);
  color: var(--navy);
  transition: background .15s;
}
.nav__item:hover { background: var(--blue-soft); }
.nav__item.is-active { background: var(--navy); color: var(--white); }
.nav__item.is-active .nav__icon { color: var(--yellow); }
.nav__item--logout { color: #c2416b; }
.nav__icon { width: 24px; font-size: 1.4rem; text-align: center; color: var(--blue); }
.pieps-icon { width: 25px; height: 25px; flex: 0 0 auto; margin: 0 -1px 0 0; }

.heart { position: relative; display: inline-grid; place-items: center; }
.heart > * { grid-area: 1 / 1; }
.heart .ms { font-size: 1.4rem; transition: font-variation-settings .2s, transform .2s; }
.heart__count {
  display: none;
  margin-top: -2px;
  color: var(--white);
  font: 700 .62rem var(--font-display);
  line-height: 1;
}
.heart.has-matches .ms {
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
  font-size: 1.75rem;
  color: var(--red);
}
.heart.has-matches .heart__count { display: block; }
.heart--lg .ms { font-size: 2.2rem; color: var(--navy); }
.heart--lg.has-matches .ms { font-size: 2.2rem; color: var(--red); }
.heart--lg .heart__count { font-size: .78rem; }

.donate {
  display: inline-flex; align-items: center; gap: 6px;
  align-self: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .82rem; font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: color .15s, background .15s;
}
.donate .ms { font-size: 1.1rem; }
.donate:hover { color: var(--navy); background: var(--blue-soft); }

.legal {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-size: .8rem; color: var(--muted);
  text-align: center;
}
.legal span:last-child { opacity: .75; }
.legal a { text-decoration: none; }
.legal a:hover { text-decoration: underline; }

.stage {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  min-width: 0;
}

.deck {
  position: relative;
  width: 100%;
  height: var(--deck-h);
}

.card {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  touch-action: none;
  user-select: none;
  cursor: grab;
  will-change: transform;
  transition: transform .35s cubic-bezier(.2, .8, .3, 1.2);
}
.card.is-dragging { transition: none; cursor: grabbing; }
.card.is-behind { transform: scale(.94) translateY(18px); pointer-events: none; filter: brightness(.97); }
.card.is-gone { transition: transform .4s ease-in; }

.card__media {
  position: relative;
  flex: 1 1 auto;
  min-height: 200px;
  overflow: hidden;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }

.card__art {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  padding-bottom: 100px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,.55) 0 2px, transparent 3px) 0 0 / 26px 26px,
    linear-gradient(150deg, var(--c1), var(--c2));
}
.card__art::before, .card__art::after {
  content: "auto_awesome";
  font-family: "Material Symbols Rounded";
  font-variation-settings: "FILL" 1;
  position: absolute;
  color: rgba(255, 255, 255, .85);
  font-size: 2.6rem;
}
.card__art::before { top: 14%; left: 14%; }
.card__art::after { bottom: 18%; right: 14%; font-size: 1.8rem; color: var(--yellow); }
.card__icon {
  font-size: clamp(5rem, 20vh, 12rem);
  color: var(--white);
  filter: drop-shadow(0 10px 16px rgba(31, 58, 110, .3));
}

.card__pills {
  position: absolute; top: 16px; right: 16px;
  display: flex; gap: 8px;
}
.card__platform, .card__visit {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: var(--navy);
  font: 600 .85rem var(--font-display);
  text-decoration: none;
}
.card__visit { background: var(--navy); color: var(--white); transition: background .15s; }
.card__visit:hover { background: var(--blue); }
.card__visit .ms { font-size: 1rem; }

.stamp {
  position: absolute; top: 28px;
  padding: 6px 16px;
  border: 5px solid currentColor;
  border-radius: 14px;
  font: 700 2.2rem var(--font-display);
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: 0;
  background: rgba(255, 255, 255, .8);
  pointer-events: none;
}
.stamp--collab { left: 22px; color: var(--yellow-dark); transform: rotate(-14deg); }
.stamp--skip { right: 22px; color: var(--navy); transform: rotate(14deg); }

.card__info {
  flex: 0 0 auto;
  display: flex; flex-direction: column; gap: 14px;
  padding: 26px 26px 28px;
  position: relative;
}
.card__info::before {
  content: "";
  position: absolute; left: 0; right: 0; top: -40px; height: 40px;
  background: linear-gradient(transparent, rgba(255, 255, 255, .9));
  pointer-events: none;
}
.card__head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.card__details { display: flex; flex-direction: column; gap: 14px; }
.card__more { display: none; }
.card__name { margin: 0; font: 600 1.6rem var(--font-display); color: var(--navy); }
.card__handle { color: var(--muted); font-size: .95rem; }

.card__meta {
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  font-size: .88rem; color: var(--blue);
  font-weight: 700;
}
.card__meta span { display: inline-flex; align-items: center; gap: 4px; }
.card__meta .ms { font-size: 1.15rem; }

.card__bio {
  margin: 0;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tags { display: flex; flex-wrap: wrap; gap: 10px 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.tag {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--navy);
  font: 500 .88rem var(--font-display);
}
.tag--looking { background: var(--yellow); }

.deck-wrap { position: relative; width: 100%; }

/* top is set in app.js */
.actions {
  position: absolute; left: 0; right: 0; top: var(--actions-top, auto); bottom: auto;
  z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  pointer-events: none;
  transition: top .25s ease;
}
.actions > * { pointer-events: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 60px; padding: 0 28px;
  border: 0; border-radius: 999px;
  font: 700 1.2rem var(--font-display);
  letter-spacing: .06em; text-transform: uppercase;
  box-shadow: var(--shadow);
  transition: transform .15s, background .15s, opacity .15s;
}
.btn:hover:not(:disabled) { transform: translateY(-2px); }
.btn:active:not(:disabled) { transform: scale(.96); }
.btn:disabled { opacity: .4; cursor: default; }
.btn__icon { font-size: 1.5rem; }

.actions .btn {
  height: 52px;
  font-weight: 600; font-size: 1.05rem; letter-spacing: .04em;
  box-shadow: 0 6px 18px -8px rgba(31, 58, 110, .45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.actions .btn--collab, .actions .btn--skip { flex: 0 1 34%; border: 3px solid rgba(255, 255, 255, .9); }
.actions .btn--collab { border-left: 0; border-radius: 0 999px 999px 0; }
.actions .btn--skip { border-right: 0; border-radius: 999px 0 0 999px; }
.actions .btn:hover:not(:disabled) { transform: none; }
.actions .btn .btn__icon { font-size: 1.25rem; }
.btn--collab { background: var(--yellow); color: var(--navy); }
.btn--collab:hover:not(:disabled) { background: #ffd34f; }
.btn--skip { background: rgba(255, 255, 255, .78); color: var(--navy); }
.btn--skip:hover:not(:disabled) { background: rgba(255, 255, 255, .95); }
.btn--undo {
  flex: 0 0 auto;
  width: 46px; height: 46px !important; padding: 0;
  background: rgba(255, 255, 255, .78); color: var(--blue);
  border: 3px solid rgba(255, 255, 255, .9);
}
.btn--undo:hover:not(:disabled) { background: var(--white); }
.btn--undo .ms { font-size: 1.4rem; }
.btn--undo:disabled { opacity: .55; }
.btn--ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 2px rgba(255,255,255,.5); }

.hint { margin: 0; color: var(--muted); font-size: .85rem; text-align: center; }

.empty {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 24px;
  text-align: center;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.empty img { width: 180px; }
.empty h2 { margin: 8px 0 0; font: 600 1.6rem var(--font-display); color: var(--navy); }
.empty p { margin: 0 0 12px; color: var(--muted); }

.match, .modal {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center;
  padding: 16px;
  background: rgba(22, 43, 84, .75);
  backdrop-filter: blur(6px);
  animation: fade .25s ease-out;
}
.match__box {
  width: min(420px, 100%);
  padding: 28px 24px;
  border-radius: 28px;
  background: var(--navy);
  color: var(--white);
  text-align: center;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5);
  animation: pop .4s cubic-bezier(.2, .8, .3, 1.4);
}
.match__bird { width: 130px; margin: -80px auto 0; border-radius: 50%; border: 5px solid var(--yellow); }
.match h2 { margin: 12px 0 4px; font: 700 2rem var(--font-display); color: var(--yellow); }
.match p { margin: 0 0 20px; opacity: .9; }
.match__avatars { display: flex; justify-content: center; margin-bottom: 24px; }
.match__avatars > * {
  width: 96px; height: 96px;
  border-radius: 50%;
  border: 4px solid var(--yellow);
  object-fit: cover;
}
.match__them img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.match__them {
  margin-left: -18px;
  overflow: hidden;
  display: grid; place-items: center;
  font-size: 2rem;
  color: var(--white);
  background: linear-gradient(150deg, var(--c1), var(--c2));
}
.match__buttons { display: flex; flex-direction: column; gap: 10px; }
.match__buttons .btn { width: 100%; max-width: none; }

.modal__box {
  width: min(460px, 100%);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 28px 26px 24px;
  border-radius: 28px;
  background: var(--white);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5);
  animation: pop .4s cubic-bezier(.2, .8, .3, 1.4);
}
.modal__bird { width: 110px; margin: 0 auto 4px; }
.modal h2 { margin: 0 0 10px; text-align: center; font: 700 1.7rem var(--font-display); color: var(--navy); }
.modal p { margin: 0 0 16px; line-height: 1.5; }
.safety-list {
  display: flex; flex-direction: column; gap: 12px;
  margin: 0 0 18px; padding: 16px;
  list-style: none;
  border-radius: 18px;
  background: var(--blue-soft);
  font-size: .95rem; line-height: 1.45;
}
.safety-list li { display: flex; gap: 10px; }
.safety-list .ms { font-size: 1.3rem; color: var(--blue); }
.safety-check { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; color: var(--muted); font-size: .9rem; cursor: pointer; }
.safety-check input { width: 18px; height: 18px; accent-color: var(--navy); }
.modal__buttons { display: flex; flex-direction: column; gap: 8px; }
.modal__buttons .btn { width: 100%; height: 52px; font-size: 1rem; }

.matches { min-width: 0; padding: 16px 0 40px; }
.matches__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.matches__title { margin: 0; font: 600 2.2rem var(--font-display); color: var(--navy); }
.matches__intro { margin: 6px 0 24px; color: var(--muted); }

.pill-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  border: 0; border-radius: 999px;
  background: var(--white); color: var(--navy);
  font: 600 .9rem var(--font-display);
  box-shadow: 0 4px 14px -6px rgba(31, 58, 110, .4);
}
.pill-btn:hover { background: var(--blue-soft); }
.pill-btn .ms { font-size: 1.2rem; color: var(--blue); }

.match-list { display: flex; flex-direction: column; gap: 18px; margin: 0; padding: 0; list-style: none; }

.match-item {
  display: grid; grid-template-columns: 88px 1fr; gap: 16px 20px;
  padding: 22px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.match-item__avatar {
  width: 88px; height: 88px;
  border-radius: 50%;
  border: 4px solid var(--yellow);
  object-fit: cover;
}
.match-item__avatar--icon {
  display: grid; place-items: center;
  color: var(--white); font-size: 2rem;
  background: linear-gradient(150deg, var(--c1), var(--c2));
}
.match-item__body { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.match-item__name { margin: 0; font: 600 1.4rem var(--font-display); color: var(--navy); }
.match-item__platform {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--blue-soft); color: var(--navy);
  font: 600 .8rem var(--font-display);
  text-decoration: none;
}
.match-item__platform:hover { background: #d8e2f5; }
.match-item__platform .ms { font-size: .95rem; }

.match-item__actions {
  grid-column: 1 / -1;
  display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px;
  padding-top: 16px;
  border-top: 2px dashed var(--blue-soft);
}
.match-item__confirm { margin-right: auto; font-weight: 700; color: var(--navy); }
.match-item.is-piepsed .match-item__actions { flex-direction: column; align-items: stretch; gap: 10px; }
.match-item__status {
  display: flex; align-items: center; gap: 6px;
  color: var(--muted); font-size: .85rem;
}
.match-item__status > .ms { font-size: 1.1rem; color: #2fa36b; }
.link-btn {
  margin-left: auto;
  padding: 4px 8px;
  border: 0; border-radius: 8px;
  background: none;
  color: var(--muted);
  font: 600 .85rem var(--font-body);
  text-decoration: underline; text-underline-offset: 3px;
}
.link-btn:hover { color: var(--red); }

.btn--sm { height: 44px; padding: 0 20px; white-space: nowrap; font-size: .95rem; font-weight: 600; letter-spacing: .04em; box-shadow: none; }
.btn--sm .btn__icon { font-size: 1.2rem; }
.btn--plain { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 2px var(--blue-soft); }
.btn--plain:hover:not(:disabled) { color: var(--navy); background: var(--blue-soft); }
.btn--danger { background: var(--red); color: var(--white); }
.btn--danger:hover:not(:disabled) { background: #cf2f3d; }
a.btn { text-decoration: none; }

.discord {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 12px 12px 12px;
  border-radius: 18px;
  background: var(--blue-soft);
  animation: pop .35s cubic-bezier(.2, .8, .3, 1.4);
}
.discord__logo {
  display: grid; place-items: center;
  flex: 0 0 auto;
  width: 44px; height: 44px;
  border-radius: 14px;
  background: #5865f2;
  color: var(--white);
}
.discord__logo svg { width: 24px; height: 24px; }
.discord__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; line-height: 1.15; }
.discord__label { font-size: .75rem; font-weight: 700; color: var(--muted); }
.discord__name {
  font: 600 1.15rem var(--font-display); color: var(--navy);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  user-select: all;
}
.discord__copy {
  display: inline-flex; align-items: center; gap: 6px;
  margin-left: auto;
  height: 40px; padding: 0 14px;
  border: 0; border-radius: 12px;
  background: var(--white); color: var(--navy);
  font: 600 .9rem var(--font-display);
  box-shadow: 0 2px 8px -4px rgba(31, 58, 110, .35);
  transition: background .15s, color .15s;
}
.discord__copy:hover { background: var(--navy); color: var(--white); }
.discord__copy .ms { font-size: 1.15rem; }
.discord__copy.is-copied { background: #2fa36b; color: var(--white); }

.prefs { min-width: 0; padding: 16px 0 0; }

.pref-card {
  margin-bottom: 24px;
  padding: 30px 32px 32px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.pref-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pref-card__head h2 {
  display: flex; align-items: center; gap: 8px;
  margin: 0;
  font: 600 1.3rem var(--font-display); color: var(--navy);
}
.pref-card__head h2 .ms { font-size: 1.4rem; color: var(--blue); }
.pref-card__hint { margin: 6px 0 22px; color: var(--muted); font-size: .92rem; }

.chips { display: flex; flex-wrap: wrap; gap: 12px 10px; }
.chips__empty { margin: 0; color: var(--muted); font-size: .9rem; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 6px 16px;
  border: 2px solid var(--blue-soft); border-radius: 999px;
  background: var(--white); color: var(--navy);
  font: 500 .95rem var(--font-display);
  transition: background .15s, border-color .15s, color .15s;
}
.chip:hover { border-color: #c8d5ee; background: #f6f8fd; }
.chip__icon { font-size: 1.2rem; color: var(--blue); }
.chip__check { display: none; font-size: 1.1rem; }
.chip__sub { margin-left: 4px; color: var(--muted); font-size: .8rem; font-family: var(--font-body); font-weight: 600; }
.chip.is-selected { background: var(--navy); border-color: var(--navy); color: var(--white); }
.chip.is-selected .chip__check { display: inline-block; color: var(--yellow); }
.chip.is-selected .chip__icon { display: none; }
.chip.is-selected .chip__sub { color: rgba(255, 255, 255, .7); }

.tag-search {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 20px;
  padding: 4px 4px 4px 16px;
  border: 2px solid var(--blue-soft); border-radius: 999px;
  background: #f8faff;
}
.tag-search:focus-within { border-color: var(--blue); background: var(--white); }
.tag-search > .ms { color: var(--muted); font-size: 1.3rem; }
.tag-search input {
  flex: 1; min-width: 0; height: 40px;
  border: 0; outline: 0; background: transparent;
  font: 600 1rem var(--font-body); color: var(--navy);
}
.tag-search .btn { height: 38px; }

.prefs__bar {
  position: sticky; bottom: 16px; z-index: 5;
  display: flex; align-items: center; gap: 12px;
  margin: 12px 0 32px;
  padding: 14px 14px 14px 30px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
.prefs__count { margin-right: auto; color: var(--muted); font-size: .92rem; }
.prefs__count b { color: var(--navy); font-family: var(--font-display); font-size: 1.1rem; }

.chip:disabled { opacity: .4; cursor: not-allowed; }
.pref-card__count { font: 600 .9rem var(--font-display); color: var(--muted); }
.pref-card__count.is-full { color: var(--red); }

.pictures { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 28px 24px; }
.picture { display: flex; align-items: center; gap: 18px; }
.picture h3 { margin: 0 0 4px; font: 600 1.05rem var(--font-display); color: var(--navy); }
.picture p { margin: 0 0 12px; color: var(--muted); font-size: .88rem; line-height: 1.4; }
.picture__avatar {
  flex: 0 0 auto;
  width: 96px; height: 96px;
  border-radius: 50%;
  border: 4px solid var(--yellow);
  object-fit: cover;
}
.picture__card {
  flex: 0 0 auto;
  display: grid; place-items: center;
  width: 84px; height: 112px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--blue-soft); color: var(--blue);
  box-shadow: 0 6px 16px -8px rgba(31, 58, 110, .5);
}
.picture__card img { width: 100%; height: 100%; object-fit: cover; }
.picture__card .ms { font-size: 2rem; }
.file-btn { cursor: pointer; }

.fields { display: flex; flex-direction: column; gap: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field__label { display: flex; justify-content: space-between; gap: 8px; font: 600 .95rem var(--font-display); color: var(--navy); }
.field__label em { font: 600 .8rem var(--font-body); font-style: normal; color: var(--muted); }
.field__input, .field textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--blue-soft); border-radius: 16px;
  background: #f8faff;
  font: 600 1rem var(--font-body); color: var(--navy);
  outline: 0;
  transition: border-color .15s, background .15s;
}
select.field__input {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 46px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5' fill='none' stroke='%234a6fb0' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 20px;
}
select.field__input:hover { border-color: #c8d5ee; }
select.field__input:disabled { cursor: default; opacity: .6; }
.field textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.field__input:focus, .field textarea:focus, .field__input:focus-within { border-color: var(--blue); background-color: var(--white); }
.field__input--discord { display: flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; }
.field__input--discord input { flex: 1; min-width: 0; height: 36px; border: 0; outline: 0; background: transparent; font: inherit; color: inherit; }
.field__prefix {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 11px;
  background: #5865f2; color: var(--white);
}
.field__prefix svg { width: 20px; height: 20px; }

.connected {
  display: flex; align-items: center; gap: 14px;
  margin-top: 16px;
  padding: 14px;
  border-radius: 18px;
  background: var(--blue-soft);
}
.connected__logo {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 14px;
  background: #9146ff; color: var(--white);
}
.connected__logo svg { width: 22px; height: 22px; }
.connected__text { display: flex; flex-direction: column; line-height: 1.2; color: var(--muted); font-size: .9rem; }
.connected__text b { font: 600 1.05rem var(--font-display); color: var(--navy); }
.connected__badge {
  display: inline-flex; align-items: center; gap: 4px;
  margin-left: auto;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--white); color: #9146ff;
  font: 600 .85rem var(--font-display);
}
.connected__badge .ms { font-size: 1.1rem; }

.danger { box-shadow: var(--shadow), inset 0 0 0 2px #fbd5d8; }
.danger .pref-card__head h2, .danger .pref-card__head h2 .ms { color: var(--red); }
.btn--danger-outline { background: var(--white); color: var(--red); box-shadow: inset 0 0 0 2px #f4b6bb; }
.btn--danger-outline:hover { background: var(--red); color: var(--white); }

.status-dot { display: inline-block; width: 9px; height: 9px; margin-right: 4px; border-radius: 50%; background: var(--yellow-dark); }
.status-ok { font-size: 1.1rem; vertical-align: -3px; color: #2fa36b; }
.account .prefs__count { display: inline-flex; align-items: center; gap: 4px; }

.cropper { width: min(480px, 100%); }
.cropper__hint { margin: -4px 0 16px !important; text-align: center; color: var(--muted); font-size: .9rem; }
.cropper__stage {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 18px;
  background: #0f1d3a;
  touch-action: none;
  cursor: grab;
}
.cropper__stage:active { cursor: grabbing; }
.cropper__img {
  position: absolute; top: 0; left: 0;
  max-width: none;
  transform-origin: 0 0;
  user-select: none;
  pointer-events: none;
}
.cropper__frame {
  position: absolute;
  border: 2px solid var(--white);
  border-radius: 14px;
  box-shadow: 0 0 0 9999px rgba(10, 20, 45, .6);
  pointer-events: none;
}
.cropper__frame.is-round { border-radius: 50%; }
.cropper__zoom { display: flex; align-items: center; gap: 10px; margin: 16px 0 20px; color: var(--muted); }
.cropper__zoom input { flex: 1; accent-color: var(--navy); }
.modal__buttons--row { flex-direction: row; }
.modal__buttons--row .btn { flex: 1; }

.preview { display: flex; flex-direction: column; align-items: center; gap: 14px; width: min(440px, 100%); }
.preview__card { position: relative; width: 100%; height: min(680px, calc(100dvh - 120px)); }
.card.is-preview { cursor: default; animation: pop .35s cubic-bezier(.2, .8, .3, 1.4); }
.card.is-preview .stamp { display: none; }
.preview__close { background: var(--white); }

.goodbye {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-height: 100dvh;
  padding: 24px;
  text-align: center;
}
.goodbye img { width: 200px; }
.goodbye h1 { margin: 8px 0 0; font: 600 2rem var(--font-display); color: var(--navy); }
.goodbye p { margin: 0 0 16px; color: var(--muted); }

.card__report, .match-item__report {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .85); color: var(--muted);
  transition: background .15s, color .15s;
}
.card__report { position: absolute; top: 16px; left: 16px; z-index: 2; }
.card__report:hover, .match-item__report:hover { background: var(--white); color: var(--red); }
.card__report .ms, .match-item__report .ms { font-size: 1.2rem; }
.card.is-preview .card__report { display: none; }
.match-item { position: relative; }
.match-item__report { position: absolute; top: 14px; right: 14px; background: transparent; }
.match-item__report:hover { background: #fdecee; }
.match-item .card__head { padding-right: 36px; }

.notice {
  display: flex; align-items: flex-start; gap: 8px;
  margin: -8px 0 22px;
  padding: 10px 14px;
  border-radius: 14px;
  background: #fff7dc;
  color: var(--text); font-size: .88rem; line-height: 1.45;
}
.notice .ms { font-size: 1.2rem; color: var(--yellow-dark); }
.notice a { color: var(--navy); font-weight: 700; }

.picture__thumb { position: relative; flex: 0 0 auto; }
.review-badge {
  position: absolute; left: 50%; bottom: -10px;
  transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 3px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--yellow); color: var(--navy);
  font: 600 .72rem var(--font-display);
  white-space: nowrap;
  border: 0;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(31, 58, 110, .25);
  transition: background .15s;
}
.review-badge:hover { background: var(--yellow-dark); }
.picture__thumb.is-in-review .picture__avatar,
.picture__thumb.is-in-review .picture__card img { filter: grayscale(1); opacity: .55; }
.review-badge .ms { font-size: .9rem; }
#reviewInfo .safety-list a { color: var(--navy); font-weight: 700; }

.reasons { display: flex; flex-direction: column; gap: 8px; margin: 0 0 18px; padding: 0; border: 0; }
.reasons legend { margin-bottom: 8px; padding: 0; }
.reason {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border: 2px solid var(--blue-soft); border-radius: 14px;
  cursor: pointer;
  font-weight: 600; color: var(--navy);
  transition: border-color .15s, background .15s;
}
.reason:hover { background: #f8faff; }
.reason:has(input:checked) { border-color: var(--red); background: #fff5f6; }
.reason input { width: 18px; height: 18px; margin: 0; accent-color: var(--red); }
#reportModal .field { margin-bottom: 18px; }

.rules__intro { text-align: center; }
.rules__gate { display: none; flex-direction: column; gap: 8px; margin-bottom: 14px; }
/* whole row is the tap target */
.gate-check {
  display: flex; align-items: center; gap: 12px;
  min-height: 48px; padding: 8px 14px;
  border: 2px solid var(--blue-soft); border-radius: 14px;
  color: var(--navy); font-weight: 700;
  cursor: pointer;
  -webkit-user-select: none; user-select: none;
}
.gate-check:has(input:checked) { border-color: var(--navy); background: #f3f6fc; }
.gate-check input { flex: 0 0 auto; width: 22px; height: 22px; margin: 0; accent-color: var(--navy); }
/* stays visible at the bottom when the rules don't fit on small phones */
.rules__footer {
  position: sticky; bottom: -24px;
  margin: 0 -26px -24px; padding: 16px 26px 24px;
  background: var(--white);
  border-radius: 0 0 28px 28px;
}
#rules.is-gate .rules__footer { box-shadow: 0 -10px 16px -12px rgba(31, 58, 110, .35); }
#rules.is-gate .rules__gate { display: flex; }
#rules.is-gate { background: rgba(22, 43, 84, .9); }

.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 60;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px;
  width: max-content; max-width: calc(100vw - 32px);
  padding: 12px 18px;
  border-radius: 16px;
  background: var(--navy); color: var(--white);
  font-weight: 600; font-size: .92rem;
  box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .45);
  animation: pop .3s cubic-bezier(.2, .8, .3, 1.4);
}
.toast .ms { color: var(--yellow); font-size: 1.25rem; }

.match-empty, .placeholder {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 40px 24px;
  text-align: center;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.match-empty img, .placeholder img { width: 150px; }
.match-empty h2, .placeholder h1 { margin: 6px 0 0; font: 600 1.5rem var(--font-display); color: var(--navy); }
.match-empty p, .placeholder p { margin: 0 0 12px; color: var(--muted); }
.placeholder { align-self: start; margin-top: 16px; }

@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: scale(.7); opacity: 0; } }

.topbar { display: none; }
.scrim { display: none; }

@media (max-width: 900px) {
  .topbar {
    position: sticky; top: 0; z-index: 20;
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
    padding: 0 12px;
    padding-top: env(safe-area-inset-top);
    background: rgba(251, 248, 242, .92);
    backdrop-filter: blur(8px);
  }
  .topbar__logo { height: 48px; width: auto; }
  .topbar__matches { display: grid; place-items: center; width: 44px; height: 44px; text-decoration: none; }

  .layout {
    display: block;
    min-height: auto;
    padding: 4px 16px calc(12px + env(safe-area-inset-bottom));
  }

  .sidebar {
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 40;
    width: min(320px, 86vw);
    padding: 16px;
    overflow-y: auto;
    background: var(--cream);
    transform: translateX(-105%);
    transition: transform .3s ease;
    box-shadow: 10px 0 40px rgba(0, 0, 0, .2);
  }
  .sidebar.is-open { transform: none; }
  .sidebar__close { display: grid; align-self: flex-end; margin-bottom: -12px; }

  .scrim {
    display: block;
    position: fixed; inset: 0; z-index: 30;
    background: rgba(22, 43, 84, .45);
  }

  .stage { gap: 12px; }
  .deck {
    height: calc(100dvh - var(--demo-h) - 64px - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    min-height: 380px;
  }
  .hint { display: none; }
  .btn { height: 56px; padding: 0 18px; font-size: 1.05rem; }
  .actions .btn--collab, .actions .btn--skip { flex-basis: 38%; padding: 0 12px; }
  .card__info { gap: 10px; padding: 20px 18px 20px; }
  .card__name { font-size: 1.4rem; }
  .card__bio { -webkit-line-clamp: 2; font-size: .95rem; }
  .stamp { font-size: 1.7rem; }
}

@media (max-width: 600px) {
  .field-row { grid-template-columns: 1fr; }
  .connected { flex-wrap: wrap; }
  .prefs { padding-top: 4px; }
  .pref-card { margin-bottom: 18px; padding: 24px 20px 26px; }
  .chip { min-height: 38px; padding: 5px 13px; font-size: .9rem; }
  .chip__sub { display: none; }
  .prefs__bar { flex-wrap: wrap; border-radius: 24px; padding: 18px 20px; gap: 14px; bottom: calc(10px + env(safe-area-inset-bottom)); }
  .prefs__bar .btn { flex: 1 1 100%; }
  .matches { padding-top: 4px; }
  .matches__title { font-size: 1.8rem; }
  .match-item { grid-template-columns: 60px 1fr; gap: 14px; padding: 18px 16px; }
  .match-item__avatar { width: 60px; height: 60px; border-width: 3px; }
  .match-item__name { font-size: 1.25rem; }
  .match-item__actions .btn { flex: 1; padding: 0 12px; }
  .discord__copy-label { display: none; }
  .discord__copy { padding: 0 11px; }
  .match-item__status { flex-wrap: wrap; }
  .match-item__confirm { flex: 1 1 100%; }
}

@media (max-width: 900px) {
  body[data-page="discover"] { overflow: hidden; }
  body[data-page="discover"] .topbar { background: var(--cream); backdrop-filter: none; }
  body[data-page="discover"] .layout { padding: 0; }
  body[data-page="discover"] .stage { gap: 0; }
  body[data-page="discover"] .deck {
    height: calc(100dvh - var(--demo-h) - 64px - env(safe-area-inset-top));
    min-height: 0;
  }
  body[data-page="discover"] .card,
  body[data-page="discover"] .empty { border-radius: 0; box-shadow: none; }
  body[data-page="discover"] .card.is-behind { transform: none; filter: brightness(.9); }
  body[data-page="discover"] .card__info { padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
  body[data-page="discover"] .card.is-expanded .card__info { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
}

@media (max-width: 900px) {
  /* info overlays the image so expanding it doesn't re-crop the picture */
  .card__media { position: absolute; inset: 0; }
  .card__info {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
    background: var(--white);
    cursor: pointer;
  }
  .card__details { display: none; }
  .card__head { align-items: center; flex-wrap: nowrap; }
  .card__name { flex: 0 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .card__handle { flex: 1 1 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .card__more {
    display: inline-flex; align-items: center; gap: 2px;
    flex: 0 0 auto; margin-left: auto;
    padding: 5px 6px 5px 12px;
    border-radius: 999px;
    background: var(--blue-soft); color: var(--navy);
    font: 600 .82rem var(--font-display);
  }
  .card__more .ms { font-size: 1.2rem; transition: transform .2s; }
  .card__more-label::after { content: "Show more"; }

  .card.is-expanded .card__info {
    max-height: 78%;
    overflow-y: auto;
    overscroll-behavior: contain;
    touch-action: pan-y;
    border-radius: var(--radius) var(--radius) 0 0;
    background: var(--white);
    box-shadow: 0 -12px 30px -10px rgba(31, 58, 110, .35);
    animation: sheet-up .25s ease-out;
  }
  .card.is-expanded .card__info::before { display: none; }
  .card.is-expanded .card__details { display: flex; }
  .card.is-expanded .card__bio { display: block; -webkit-line-clamp: unset; overflow: visible; }
  .card.is-expanded .card__more-label::after { content: "Show less"; }
  .card.is-expanded .card__more .ms { transform: rotate(180deg); }
  .card.is-expanded .card__media::after {
    content: ""; position: absolute; inset: 0; z-index: 2;
    background: rgba(22, 43, 84, .35);
  }
  .deck-wrap.has-expanded .actions { opacity: 0; pointer-events: none; }
}

@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .card, .sidebar, .btn { transition: none; }
  .match, .match__box { animation: none; }
}

.onboard {
  position: fixed; inset: 0; z-index: 45;
  display: grid; place-items: center;
  padding: 24px 16px;
  background:
    radial-gradient(circle at 12% 18%, rgba(252, 199, 44, .25), transparent 45%),
    radial-gradient(circle at 88% 82%, rgba(74, 111, 176, .2), transparent 50%),
    var(--cream);
}
body.is-onboarding { overflow: hidden; }
body.is-onboarding .layout, body.is-onboarding .topbar { visibility: hidden; }

.onboard__box {
  display: flex; flex-direction: column;
  width: min(600px, 100%);
  max-height: calc(100dvh - 48px);
  background: var(--white);
  border-radius: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.onboard__head {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
  padding: 18px 26px;
  border-bottom: 2px solid var(--blue-soft);
}
.onboard__logo { height: 40px; width: auto; }
.onboard__progress { height: 8px; border-radius: 999px; background: var(--blue-soft); overflow: hidden; }
.onboard__progress span { display: block; height: 100%; border-radius: inherit; background: var(--yellow); transition: width .3s ease; }
.onboard__step { color: var(--muted); font: 600 .85rem var(--font-display); white-space: nowrap; }

.onboard__body {
  flex: 1; min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 28px 30px 8px;
}
.onboard__body h1 { margin: 0 0 6px; font: 600 1.8rem var(--font-display); color: var(--navy); }
.ob-lead { margin: 0 0 22px; color: var(--muted); line-height: 1.5; }
.ob-sub {
  display: flex; align-items: center; gap: 8px;
  margin: 24px 0 12px;
  font: 600 1.1rem var(--font-display); color: var(--navy);
}
.ob-sub:first-of-type { margin-top: 16px; }
.ob-sub .ms { color: var(--blue); font-size: 1.3rem; }
.ob-count { margin-left: auto; color: var(--muted); font-size: .85rem; }
.ob-hint { min-height: 1.2em; margin: 18px 0 0; color: var(--muted); font-size: .85rem; text-align: right; }

.onboard__foot {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 26px calc(18px + env(safe-area-inset-bottom));
  border-top: 2px solid var(--blue-soft);
}
.onboard__foot #obNext { margin-left: auto; }
.onboard__foot .btn { height: 48px; }

.ob-hello { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 12px 0 8px; }
.ob-hello p { margin: 0; max-width: 420px; color: var(--muted); line-height: 1.55; }
.ob-avatar { position: relative; margin-bottom: 18px; }
.ob-avatar img {
  width: 130px; height: 130px;
  border-radius: 50%;
  border: 5px solid var(--yellow);
  box-shadow: 0 0 0 5px var(--white), 0 0 0 9px var(--blue-soft);
  object-fit: cover;
}
.ob-avatar__edit {
  position: absolute; right: -2px; bottom: 4px;
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 3px solid var(--white);
  background: var(--navy); color: var(--white);
  cursor: pointer;
}
.ob-avatar__edit .ms { font-size: 1.2rem; }
.ob-twitch {
  display: inline-flex; align-items: center; gap: 4px;
  margin: 4px 0 14px !important;
  padding: 4px 12px;
  border-radius: 999px;
  background: #f1e8ff; color: #7c2ff2 !important;
  font: 600 .88rem var(--font-display);
}
.ob-twitch .ms { font-size: 1.05rem; }

.ob-card-pic {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  width: min(260px, 70%); aspect-ratio: 3 / 4;
  margin: 0 auto 22px;
  border: 3px dashed #c8d5ee; border-radius: 22px;
  background: #f8faff;
  color: var(--blue);
  cursor: pointer;
  overflow: hidden;
  transition: border-color .15s, background .15s;
}
.ob-card-pic:hover { border-color: var(--blue); background: var(--white); }
.ob-card-pic > .ms { font-size: 3rem; }
.ob-card-pic b { font: 600 1.1rem var(--font-display); color: var(--navy); }
.ob-card-pic span:not(.ms) { color: var(--muted); font-size: .85rem; }
.ob-card-pic.has-image { border: 0; box-shadow: var(--shadow); }
.ob-card-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ob-card-pic__change {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92); color: var(--navy) !important;
  font: 600 .85rem var(--font-display) !important;
}
.ob-card-pic__change .ms { font-size: 1rem; }
.onboard .notice { margin: 0; }

.ob-preview { position: relative; width: min(360px, 100%); height: 520px; margin: 0 auto; }
.ob-preview .card { cursor: default; }

.restart-onboarding { display: block; margin: 14px 0 0 auto; }

@media (max-width: 600px) {
  .onboard { padding: 0; place-items: stretch; }
  .onboard__box { width: 100%; max-height: none; height: 100dvh; border-radius: 0; box-shadow: none; }
  .onboard__head { gap: 12px; padding: calc(12px + env(safe-area-inset-top)) 16px 12px; }
  .onboard__logo { height: 32px; }
  .onboard__body { padding: 22px 18px 8px; }
  .onboard__body h1 { font-size: 1.55rem; }
  .onboard__foot { padding-left: 16px; padding-right: 16px; }
  .ob-preview { height: min(480px, 62dvh); }
}

@media (max-width: 900px) {
  .card.is-preview .card__details { display: flex; gap: 10px; }
  .card.is-preview .card__more { display: none; }
  .card.is-preview .card__info { cursor: default; }
  .card.is-preview .card__bio { -webkit-line-clamp: 3; }
}
body[data-page="discover"] .ob-preview .card { border-radius: var(--radius); box-shadow: var(--shadow); }

.word-hint {
  display: flex; align-items: flex-start; gap: 6px;
  margin: 6px 0 0;
  font-size: .85rem; font-weight: 600; line-height: 1.4;
}
.word-hint .ms { font-size: 1.05rem; }
.word-hint--block { color: #c22f3d; }
.word-hint--review { color: #8a5a00; }
.tag-search + .word-hint { margin: -10px 0 14px 4px; }
.is-blocked, .field textarea.is-blocked { border-color: var(--red) !important; background-color: #fff5f6 !important; }
.status-blocked { color: var(--red); font-size: 1.1rem; vertical-align: -3px; }
.gate-legal { margin: 12px 0 0 !important; text-align: center; font-size: .8rem; }
.gate-legal a { color: var(--muted); }

.logo-link { position: relative; }
.beta-tag {
  position: absolute; right: 4px; bottom: 2px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--navy); color: var(--yellow);
  font: 700 .68rem var(--font-display);
  letter-spacing: .08em; text-transform: uppercase;
}
.topbar .beta-tag { right: -30px; bottom: 6px; font-size: .58rem; padding: 1px 7px; }
.feedback-types { justify-content: center; margin-bottom: 16px; }
.feedback-types .chip.is-selected .chip__icon { display: inline-block; color: var(--yellow); }
.feedback-types .chip.is-selected .chip__check { display: none; }
#feedback .field { margin-bottom: 10px; }
.fb-meta { display: flex; gap: 6px; align-items: flex-start; font-size: .8rem !important; color: var(--muted); }
.fb-meta .ms { font-size: 1rem; }

/* demo banner: fixed height and single line, so nothing below it shifts */
:root:has(body.has-demo) { --demo-h: 36px; }
.demo-bar {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: calc(var(--demo-h) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 12px 0;
  overflow: hidden;
  background: var(--navy); color: #dbe4f5;
  font-size: .82rem; white-space: nowrap;
}
.demo-bar .ms { font-size: 1.05rem; color: var(--yellow); }
.demo-bar b { color: var(--yellow); font-family: var(--font-display); letter-spacing: .04em; }
.demo-bar__long, .demo-bar__short { overflow: hidden; text-overflow: ellipsis; }
.demo-bar__short { display: none; }
@media (max-width: 700px) {
  .demo-bar__long { display: none; }
  .demo-bar__short { display: inline; }
}
@media (max-width: 900px) {
  /* the banner already covers the notch area */
  body.has-demo .topbar { padding-top: 0; }
}
body.has-demo .sidebar { gap: 14px; }

/* full-screen layers start below the demo banner, so it stays visible */
body.has-demo .onboard,
body.has-demo .match,
body.has-demo .modal,
body.has-demo .gate { top: calc(var(--demo-h) + env(safe-area-inset-top)); }
body.has-demo .modal__box { max-height: calc(100dvh - var(--demo-h) - env(safe-area-inset-top) - 32px); }
body.has-demo .onboard__box { max-height: calc(100dvh - var(--demo-h) - env(safe-area-inset-top) - 48px); }
@media (max-width: 600px) {
  body.has-demo .onboard__box { max-height: none; height: calc(100dvh - var(--demo-h) - env(safe-area-inset-top)); }
  body.has-demo .onboard__head { padding-top: 12px; }
}
