/* Code-built iPhone and AFF app screens.
   Screens are laid out at the app's native 393 x 852 pt and scaled as one unit, so every
   measurement below matches the Swift source (Design.swift, NearbyViewController.swift, ...). */

/* ---------- Device ---------- */
.device-slot {
  --s: 0.72;
  position: relative;
  flex: none;
  width: calc(417px * var(--s));
  height: calc(876px * var(--s));
}

.device {
  position: absolute;
  left: 0;
  top: 0;
  width: 417px;
  height: 876px;
  padding: 12px;
  border-radius: 64px;
  background: linear-gradient(150deg, #3a3a3a 0%, #111 22%, #0b0b0b 60%, #2a2a2a 100%);
  box-shadow: var(--shadow-device), inset 0 0 0 1.5px rgba(255, 255, 255, 0.12);
  transform: scale(var(--s));
  transform-origin: 0 0;
}

.device::before,
.device::after {
  content: "";
  position: absolute;
  width: 4px;
  border-radius: 2px;
  background: #1f1f1f;
}

.device::before { left: -3px; top: 188px; height: 64px; box-shadow: 0 84px 0 #1f1f1f; }
.device::after { right: -3px; top: 232px; height: 96px; }

.screen {
  position: relative;
  width: 393px;
  height: 852px;
  overflow: hidden;
  border-radius: 52px;
  background: #fff;
  color: #000;
  font-family: var(--font-text);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.25;
  isolation: isolate;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.screen.is-dark { background: #000; color: #fff; }

.island {
  position: absolute;
  top: 11px;
  left: 50%;
  z-index: 60;
  width: 126px;
  height: 37px;
  margin-left: -63px;
  border-radius: 99px;
  background: #000;
}

.status {
  position: absolute;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
  padding: 16px 34px 0 50px;
  font: 600 17px/1 var(--font-ui);
  letter-spacing: -0.3px;
  pointer-events: none;
  color: #000;
  transition: color 300ms;
}

.status__icons { display: flex; align-items: center; gap: 6px; }

.status svg { fill: currentColor; }

.screen.is-dark .status,
.status.is-light { color: #fff; }

.home-bar {
  position: absolute;
  bottom: 8px;
  left: 50%;
  z-index: 60;
  width: 134px;
  height: 5px;
  margin-left: -67px;
  border-radius: 99px;
  background: #000;
  opacity: 0.85;
  pointer-events: none;
}

.screen.is-dark .home-bar { background: #fff; }

.app { position: absolute; inset: 0; }

.app-page {
  position: absolute;
  inset: 0;
  background: #fff;
  color: #000;
  will-change: transform;
}

/* Pause every CSS animation while a demo is paused or off screen. */
.is-paused,
.is-paused * { animation-play-state: paused !important; }

/* ---------- Shared app pieces ---------- */
.app-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 49px;
  margin-top: 59px;
  padding: 0 20px 8px;
}

.app-title {
  margin: 0;
  font: 700 34px/1 var(--font-ui);
  letter-spacing: -0.4px;
}

.app-icon-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0 -10px -8px 0;
  border: 0;
  background: none;
  color: #000;
}

.app-label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 20px;
  font: 700 12px/16px var(--font-text);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #8a8a8a;
}

.app-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--online);
  box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.5);
  animation: app-live 1.8s ease-out infinite;
}

@keyframes app-live {
  0% { box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.55); }
  80%, 100% { box-shadow: 0 0 0 7px rgba(52, 199, 89, 0); }
}

/* InfoPill: black, white 12 pt semibold, 12 pt radius */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 8px;
  border-radius: 4px;
  background: #000;
  color: #fff;
  font: 600 11px/1 var(--font-ui);
  white-space: nowrap;
}

.tag svg { width: 12px; height: 12px; flex: none; }

.tag--round { border-radius: 12px; height: 26px; padding: 0 12px; font-size: 12px; }

.online-dot {
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 16px;
  height: 16px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--online);
}

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 56px;
  border: 0;
  border-radius: 12px;
  background: #000;
  color: #fff;
  font: 700 18px/1 var(--font-text);
  transition: transform 180ms var(--ease-press), opacity 180ms var(--ease-press);
}

.is-pressed,
.app button:active {
  transform: scale(0.97);
  opacity: 0.8;
  transition-duration: 100ms !important;
}

/* Tab bar: white bar, selected capsule (#EDEDED) */
.tabbar {
  position: absolute;
  inset: auto 0 0;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: start;
  height: 83px;
  padding: 4px 31px 0;
  background: #fff;
  box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.08);
}

.tabbar__tab {
  position: relative;
  display: grid;
  place-items: center;
  height: 49px;
  border-radius: 25px;
}

.tabbar__tab.is-on { background: #ededed; }

.tabbar__tab svg { width: 26px; height: 26px; }

.tabbar__dot {
  position: absolute;
  top: 10px;
  left: calc(50% + 9px);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--pass);
  transform: scale(0);
  transition: transform 300ms var(--ease-push);
}

.tabbar__dot.is-on { transform: scale(1); }

/* ActivityBanner: white card, 1.5 pt black outline, 20 pt radius, shadow */
.banner {
  position: absolute;
  left: 16px;
  right: 16px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 84px;
  padding: 12px 14px 12px 12px;
  border: 1.5px solid #000;
  border-radius: 20px;
  background: #fff;
  color: #000;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.2);
}

.banner__avatar { position: relative; width: 60px; height: 60px; flex: none; }

.banner__avatar .avatar { width: 60px; height: 60px; border-radius: 50%; }

.banner__avatar .online-dot { width: 14px; height: 14px; border-width: 2.5px; right: -1px; bottom: -1px; }

.banner__text { display: grid; gap: 5px; min-width: 0; flex: 1; }

.banner__name { font: 700 17px/1.1 var(--font-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.banner__name span { margin-left: 6px; font-weight: 500; font-size: 15px; color: #555; }

.banner__msg { font: 500 14px/1.3 var(--font-text); color: #333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.banner__status { font: 500 12px/1 var(--font-text); color: #8a8a8a; }

.banner__tags { display: flex; gap: 6px; }

.banner__tags .tag { height: 20px; padding: 0 8px; border-radius: 10px; font-size: 11px; }

.banner__go {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  background: #000;
  color: #fff;
}

.banner__go svg { width: 13px; height: 13px; }

/* ---------- Avatars (parametric SVG portraits) ---------- */
.avatar { display: block; overflow: hidden; background: #ddd; }

.avatar svg { width: 100%; height: 100%; }

.avatar.is-video .av-head { animation: av-sway 6.5s ease-in-out infinite alternate; }
.avatar.is-video .av-eyes { animation: av-blink 4.6s infinite; }
.avatar.is-video .av-body { animation: av-breathe 3.8s ease-in-out infinite alternate; }
.avatar.is-video .av-smile { animation: av-smile 5.2s ease-in-out infinite; }

.av-head,
.av-eyes,
.av-body,
.av-smile { transform-box: fill-box; }

.av-head { transform-origin: 50% 100%; }
.av-eyes { transform-origin: center; }
.av-smile { transform-origin: center; }

@keyframes av-sway {
  from { transform: rotate(-2.2deg) translateX(-3px); }
  to { transform: rotate(2.2deg) translateX(3px); }
}

@keyframes av-blink {
  0%, 92%, 100% { transform: scaleY(1); }
  95% { transform: scaleY(0.12); }
}

@keyframes av-breathe {
  from { transform: translateY(0); }
  to { transform: translateY(4px); }
}

@keyframes av-smile {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12, 1.25); }
}

/* ---------- Live Now: online list ---------- */
.live-list {
  position: relative;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.live-row {
  position: relative;
  display: flex;
  align-items: center;
  height: 80px;
  margin-bottom: 22px;
  padding: 0 26px;
}

.live-row::before {
  content: "";
  position: absolute;
  inset: -8px 12px;
  z-index: -1;
  border-radius: 20px;
  background: #e5e5ea;
  opacity: 0;
  transition: opacity 250ms;
}

.live-row.is-touched::before { opacity: 1; transition-duration: 0ms; }

.live-row.is-new::after {
  content: "";
  position: absolute;
  inset: -8px 12px;
  z-index: -1;
  border-radius: 20px;
  background: rgba(52, 199, 89, 0.12);
  animation: row-glow 2.4s ease-out forwards;
}

@keyframes row-glow {
  0%, 40% { opacity: 1; }
  100% { opacity: 0; }
}

.live-row__avatar { position: relative; width: 80px; height: 80px; flex: none; }

.live-row__avatar .avatar { width: 80px; height: 80px; border-radius: 50%; }

.live-row__main {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-self: stretch;
  min-width: 0;
  margin-left: 14px;
  flex: 1;
}

.live-row__name {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  font: 400 17px/20px var(--font-ui);
  white-space: nowrap;
}

.live-row__just {
  font: 600 11px/1 var(--font-ui);
  color: #1f9d45;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 300ms, transform 300ms var(--ease-push);
}

.live-row.is-new .live-row__just { opacity: 1; transform: none; }

.live-row__tags { display: flex; gap: 7px; }

.sayhi {
  position: relative;
  flex: none;
  width: 83px;
  height: 33px;
  margin-left: 10px;
  padding: 0;
  border: 1.5px solid #000;
  border-radius: 10px;
  background: #fff;
  color: #000;
  font: 600 12px/1 var(--font-text);
  letter-spacing: 0.2px;
  white-space: nowrap;
  transition: background 200ms, color 200ms, transform 180ms var(--ease-press), opacity 180ms var(--ease-press);
}

.sayhi.is-sent { background: #000; color: #fff; }

.hi-bubble {
  position: absolute;
  z-index: 45;
  display: grid;
  place-items: center;
  width: 86px;
  height: 42px;
  border-radius: 18px 18px 18px 0;
  background: #000;
  color: #fff;
  font: 600 16px/1 var(--font-ui);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

/* ---------- Video profiles ---------- */
.rec {
  position: absolute;
  inset: 0;
  background: #000;
  color: #fff;
}

.rec__feed {
  position: absolute;
  left: 50%;
  top: 98px;
  width: 520px;
  height: 693px;
  margin-left: -260px;
  opacity: 0.9;
}

.rec__feed .avatar { width: 100%; height: 100%; background: transparent; }

.rec__shade {
  position: absolute;
  left: 26px;
  top: 212px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  box-shadow: 0 0 0 600px rgba(0, 0, 0, 0.62);
  pointer-events: none;
}

.rec__ring {
  position: absolute;
  left: 18px;
  top: 204px;
  width: 356px;
  height: 356px;
  transform: rotate(-90deg);
  pointer-events: none;
}

.rec__ring circle { fill: none; stroke-width: 4; }

.rec__ring .track { stroke: rgba(255, 255, 255, 0.28); }

.rec__ring .bar { stroke: #fff; stroke-linecap: round; }

.rec__close {
  position: absolute;
  top: 62px;
  left: 16px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  color: #fff;
}

.rec__status {
  position: absolute;
  top: 132px;
  left: 0;
  right: 0;
  text-align: center;
  font: 500 15px/1.2 var(--font-text);
}

.rec__clock {
  position: absolute;
  top: 594px;
  left: 0;
  right: 0;
  text-align: center;
  font: 700 28px/1 var(--font-text);
  font-variant-numeric: tabular-nums;
}

.rec__hint {
  position: absolute;
  top: 636px;
  left: 0;
  right: 0;
  text-align: center;
  font: 500 14px/1.2 var(--font-text);
  color: rgba(255, 255, 255, 0.86);
}

.rec__shutter {
  position: absolute;
  left: 50%;
  bottom: 62px;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  margin-left: -44px;
  padding: 0;
  border: 4px solid #fff;
  border-radius: 50%;
  background: transparent;
}

.rec__shutter span {
  width: 72px;
  height: 72px;
  border-radius: 38px;
  background: #ff3b30;
  transition: width 320ms var(--ease-push), height 320ms var(--ease-push), border-radius 320ms var(--ease-push);
}

.rec.is-recording .rec__shutter span { width: 34px; height: 34px; border-radius: 10px; }

.rec__review {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: end;
  justify-items: center;
  gap: 34px;
  padding-bottom: 60px;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms;
}

.rec__review.is-on { opacity: 1; pointer-events: auto; }

.rec__review h4 { margin: 0; font: 700 29px/1 var(--font-text); }

.rec__actions { display: flex; align-items: center; gap: 56px; }

.rec__again,
.rec__ok {
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
}

.rec__again { width: 56px; height: 56px; border: 1.5px solid rgba(255, 255, 255, 0.8); background: rgba(255, 255, 255, 0.08); color: #fff; }

.rec__ok { width: 76px; height: 76px; border: 0; background: #fff; color: #000; }

.inner-head { display: flex; align-items: center; gap: 14px; margin-top: 59px; padding: 8px 16px 0; }

.inner-head__back {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 12px;
  background: #f5f5f5;
}

.inner-head b { display: block; font: 700 22px/1.2 var(--font-text); }

.inner-head small { display: block; margin-top: 2px; font: 500 13px/1.2 var(--font-text); color: #8a8a8a; }

.review-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  align-items: center;
  margin: 22px 16px 0;
  padding: 16px;
  border-radius: 14px;
  background: #f5f5f5;
}

.review-card__thumb { position: relative; width: 96px; height: 128px; overflow: hidden; border-radius: 12px; }

.review-card__thumb .avatar { width: 100%; height: 100%; }

.review-card__play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
}

.review-card h5 { margin: 0 0 8px; font: 700 17px/1.25 var(--font-text); }

.review-card p { margin: 10px 0 0; font: 500 13px/1.4 var(--font-text); color: #6b6b6b; }

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 11px;
  border-radius: 13px;
  background: #e6e6e6;
  color: #333;
  font: 600 12px/1 var(--font-ui);
  transition: background 300ms, color 300ms;
}

.status-chip.is-done { background: #000; color: #fff; }

.status-chip .spin {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(0, 0, 0, 0.18);
  border-top-color: #333;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.checks { margin: 28px 16px 0; overflow: hidden; border-radius: 14px; background: #f5f5f5; }

.checks__label { margin: 26px 20px 10px; }

.check-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 60px;
  padding: 0 16px;
  font: 500 15px/1.2 var(--font-text);
}

.check-row + .check-row::before {
  content: "";
  position: absolute;
  top: 0;
  left: 68px;
  right: 0;
  height: 1px;
  background: #e3e3e3;
  transform: scaleY(0.5);
}

.check-row__tile {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 10px;
  background: #fff;
}

.check-row__label { flex: 1; }

.check-row__mark {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid #cfcfcf;
  color: #fff;
  transition: background 220ms, border-color 220ms;
}

.check-row__mark svg { width: 14px; height: 14px; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset 360ms var(--ease-out) 80ms; }

.check-row.is-done .check-row__mark { background: #000; border-color: #000; }

.check-row.is-done .check-row__mark svg { stroke-dashoffset: 0; }

.review-foot { position: absolute; left: 16px; right: 16px; bottom: 44px; }

.review-foot p { margin: 0 4px 14px; font: 500 13px/1.45 var(--font-text); color: #8a8a8a; text-align: center; }

.review-foot .btn-primary:disabled { opacity: 0.3; }

/* Profile page (ProfileViewController) */
.profile__hero { position: absolute; inset: 0 0 auto; height: 540px; overflow: hidden; }

.profile__hero .avatar { width: 100%; height: 100%; }

.profile__progress {
  position: absolute;
  top: 56px;
  left: 16px;
  right: 16px;
  height: 3px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.45);
}

.profile__progress i {
  display: block;
  width: 100%;
  height: 100%;
  background: #fff;
  transform-origin: 0 50%;
  animation: progress 8s linear infinite;
}

@keyframes progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.profile__tile {
  position: absolute;
  top: 70px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  color: #fff;
}

.profile__verified {
  position: absolute;
  right: 16px;
  top: 436px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border-radius: 15px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font: 600 13px/1 var(--font-ui);
}

.profile__verified svg { width: 14px; height: 14px; }

.profile__card {
  position: absolute;
  inset: 480px 0 0;
  padding: 60px 16px 0;
  border-radius: 32px 32px 0 0;
  background: #fff;
}

.profile__portrait {
  position: absolute;
  left: 16px;
  top: -50px;
  display: grid;
  place-items: center;
  width: 100px;
  height: 100px;
  border-radius: 16px;
  background: #fff;
  box-shadow: -2px -2px 8px rgba(0, 0, 0, 0.2);
}

.profile__portrait .avatar { width: 88px; height: 88px; border: 1px solid #000; border-radius: 50%; }

.profile__name { margin: 0; font: 700 24px/1.2 var(--font-text); }

.profile__tags { display: flex; gap: 8px; margin-top: 8px; }

.profile__about { margin: 22px 0 8px; font: 700 12px/1 var(--font-text); letter-spacing: 0.4px; }

.profile__bio { margin: 0; font: 500 14px/1.45 var(--font-text); color: #555; }

.profile__cta { position: absolute; left: 16px; right: 16px; bottom: 34px; }

/* ---------- Nearby ---------- */
.near-panel {
  position: absolute;
  inset: 108px 0 83px;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 0 40px;
  text-align: center;
  background: #fff;
  transition: opacity 320ms, transform 420ms var(--ease-push);
}

.near-panel.is-hidden { opacity: 0; transform: scale(0.97); pointer-events: none; }

.dash-ring {
  position: relative;
  border-radius: 50%;
}

.dash-ring > svg.ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

.dash-ring.is-spinning > svg.ring { animation: spin 8s linear infinite; }

.dash-ring.is-spinning-rev > svg.ring { animation: spin 15s linear infinite reverse; }

.near-panel h4 { margin: 46px 0 0; font: 600 22px/1.25 var(--font-ui); }

.near-panel p { margin: 18px 12px 0; font: 400 15px/1.45 var(--font-ui); color: #999; }

.near-panel .btn-primary { margin-top: 40px; border-radius: 14px; font: 600 17px/1 var(--font-ui); }

.radar { position: relative; width: 280px; height: 280px; }

.radar__pulse {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 280px;
  height: 280px;
  margin: -140px 0 0 -140px;
  border: 1.5px solid #000;
  border-radius: 50%;
  opacity: 0;
  animation: radar-pulse 2.2s ease-out infinite;
}

.radar__pulse:nth-child(2) { animation-delay: 0.55s; }
.radar__pulse:nth-child(3) { animation-delay: 1.1s; }
.radar__pulse:nth-child(4) { animation-delay: 1.65s; }

@keyframes radar-pulse {
  0% { transform: scale(0.357); opacity: 0.8; border-width: 4.2px; }
  100% { transform: scale(1); opacity: 0; border-width: 0.5px; }
}

.radar .dash-ring { position: absolute; left: 90px; top: 90px; width: 100px; height: 100px; }

.radar__me { position: absolute; left: 122px; top: 122px; width: 36px; height: 36px; }

.radar__dot {
  position: absolute;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border: 1.5px solid #000;
  border-radius: 50%;
  background: #fff;
}

.radar__dot svg { width: 15px; height: 15px; }

.radar__dot.is-floating { animation: dot-float 1.5s ease-in-out infinite alternate; }

@keyframes dot-float { to { translate: 0 -4px; } }

.near-status { margin: 36px 0 0; font: 400 15px/1.2 var(--font-ui); color: #666; }

.near-count { margin: 30px 0 0; font: 700 64px/1 var(--font-ui); font-variant-numeric: tabular-nums; }

.near-caption { margin: 14px 0 0; font: 400 14px/1.2 var(--font-ui); color: #999; }

.deck {
  position: absolute;
  top: 140px;
  left: 16px;
  right: 16px;
  bottom: 91px;
  transition: opacity 320ms;
}

.deck.is-hidden { opacity: 0; pointer-events: none; }

.swipe-card {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 32px;
  background: #999;
  touch-action: pan-y;
  cursor: grab;
}

.swipe-card:active { cursor: grabbing; }

.swipe-card.is-behind { transform: translateY(14px) scale(0.94); pointer-events: none; }

.swipe-card .avatar { position: absolute; inset: 0; width: 100%; height: 100%; }

.swipe-card__shade {
  position: absolute;
  inset: auto 0 0;
  height: 58%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
  pointer-events: none;
}

.swipe-card__name {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 180px;
  margin: 0;
  color: #fff;
  font: 700 40px/1 var(--font-text);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.25);
}

.swipe-card__name span { font-weight: 500; font-size: 28px; }

.swipe-card__tags { position: absolute; left: 24px; bottom: 132px; display: flex; gap: 8px; }

.swipe-card__tags .tag { height: 32px; padding: 0 14px; font: 700 12px/1 var(--font-ui); text-transform: uppercase; }

.swipe-card__btn {
  position: absolute;
  bottom: 32px;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  padding: 0;
  border-radius: 50%;
}

.swipe-card__btn--pass { left: calc(50% - 76px - 34px); border: 1px solid #fff; background: transparent; color: #fff; }

.swipe-card__btn--like { left: calc(50% + 76px - 34px); border: 0; background: #fff; color: #000; }

.swipe-card__feedback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
}

.swipe-card__feedback span {
  display: grid;
  place-items: center;
  width: 120px;
  height: 120px;
  border-radius: 60px;
  background: #fff;
}

.near-end h4 { margin-top: 30px; }

/* ---------- Demo controls under each phone ---------- */
.demo { display: flex; flex-direction: column; align-items: center; gap: 18px; }

.demo-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 14px;
  border-radius: 999px;
  background: var(--muted);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-600);
}

.demo-controls__hint { display: inline-flex; align-items: center; gap: 8px; margin-right: 4px; white-space: nowrap; }

.demo-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  transition: transform 180ms var(--ease-press), opacity 180ms var(--ease-press);
}

.demo-btn:active { transform: scale(0.95); opacity: 0.8; }

.demo-btn svg { width: 12px; height: 12px; }

.demo-btn[hidden] { display: none; }

.section--dark .demo-controls { background: #1a1a1a; color: var(--on-dark-2); }

.section--dark .demo-btn { background: #2a2a2a; color: #fff; }
