/* Cute Couple — "matchmaker's scrapbook" design system */
:root {
  --flare: #D93A2B; --flare-hover: #C7311F; --flare-press: #A82A1C; --flare-soft: #FFF1EC; --coral: #F08A76;
  --marigold: #FFC247; --marigold-hover: #FFD375; --marigold-soft: #FFF0CF; --marigold-ink: #7A5A12; --marigold-ink2: #6B4A16;
  --ink: #2B1230; --body: #5A4160; --muted: #7A5F7C; --label: #A8836F; --faint: #A8929F;
  --paper: #FFF4E8; --card: #FFFBF4; --strip: #FFF7EC; --soft: #F6E4D5; --track: #F0DFD0; --photo: #EFE0D2; --dash: #D9BFA8; --canvas: #EDE1D4;
  --blush: #FBDFD6; --blush-ink: #8C3A2B; --sage: #1F6B4B; --sage-soft: #E3F0E8; --grey-ink: #6E5570; --grey-soft: #EEE6E9;
  --on-ink: #FFF7EF; --on-ink-soft: #EBD9CE;
  --line: rgba(43, 18, 48, 0.09); --line2: rgba(43, 18, 48, 0.12); --line3: rgba(43, 18, 48, 0.18);
  --display: Caprasimo, Georgia, serif;
  --sans: Figtree, system-ui, -apple-system, "Segoe UI", sans-serif;
  --spring: cubic-bezier(0.2, 1.3, 0.4, 1);
  --tabs-h: 74px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--sans); background: var(--paper); color: var(--ink); min-height: 100dvh; -webkit-font-smoothing: antialiased; }
a { color: var(--flare); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--flare-press); }
button { font: inherit; cursor: pointer; color: inherit; }
button:active { transform: scale(0.98); }
input, textarea, select { font: inherit; }
input::placeholder, textarea::placeholder { color: var(--faint); }
[hidden] { display: none !important; }
b, strong { font-weight: 800; }

.shell { position: relative; min-height: 100dvh; background: var(--paper); }
@media (min-width: 640px) {
  body { background: var(--canvas); }
  .shell { max-width: 430px; margin: 0 auto; box-shadow: 0 0 0 1px var(--line2), 0 30px 70px -26px rgba(43, 18, 48, 0.45); }
}

/* ---------- logo mark ---------- */
.venn { position: relative; display: inline-block; width: 26px; height: 18px; flex: 0 0 auto; }
.venn::before, .venn::after { content: ""; position: absolute; top: 0; width: 18px; height: 18px; border-radius: 50%; }
.venn::before { left: 0; background: var(--flare); }
.venn::after { left: 8px; background: var(--marigold); mix-blend-mode: multiply; }
.venn-md { width: 24px; height: 16px; }
.venn-md::before, .venn-md::after { width: 16px; height: 16px; }
.venn-md::after { left: 8px; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 16px 11px; background: var(--paper); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.brand-name { font-family: var(--display); font-size: 18px; line-height: 1; color: var(--ink); letter-spacing: -0.1px; }
.top-right { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--body); }
.avatar-sm { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: var(--blush); border: 1.5px solid var(--card); box-shadow: 0 0 0 1px var(--line2); display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--blush-ink); }

#app { padding: 14px 16px calc(var(--tabs-h) + 24px); }
body.in-chat #app { padding: 0; }
.view { animation: fadeUp 0.22s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.title { margin: 0 0 5px; font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1.04; color: var(--ink); letter-spacing: -0.3px; }
.lede { margin: 0 0 13px; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.h3 { margin: 20px 0 9px; font-size: 14px; font-weight: 800; color: var(--ink); letter-spacing: -0.1px; }
.h3-row { display: flex; align-items: baseline; justify-content: space-between; margin: 20px 0 9px; }
.h3-row .h3 { margin: 0; }
.h3-row span { font-size: 11.5px; font-weight: 700; color: var(--blush-ink); }
.eyebrow { font-size: 10.5px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--blush-ink); }

/* ---------- pills ---------- */
.pill { display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: 0.4px; text-transform: uppercase; border-radius: 99px; padding: 5px 9px; white-space: nowrap; flex: 0 0 auto; }
.pill.chatting { color: var(--sage); background: var(--sage-soft); }
.pill.waiting { color: var(--marigold-ink); background: var(--marigold-soft); }
.pill.declined { color: var(--grey-ink); background: var(--grey-soft); }
.pill.new { color: var(--marigold-ink); background: var(--marigold-soft); }
.pill.intro { color: var(--ink); background: var(--marigold); }
.pill.score { color: var(--on-ink); background: var(--flare); }
.demo-tag { display: inline-block; vertical-align: middle; margin-left: 6px; font-size: 9px; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase; color: var(--marigold-ink); background: var(--marigold-soft); border-radius: 99px; padding: 2px 6px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 50px; padding: 0 16px;
  border: 0; border-radius: 16px; background: var(--flare); color: var(--on-ink); font-size: 14.5px; font-weight: 800;
  box-shadow: 0 10px 20px -10px rgba(217, 58, 43, 0.9); transition: background 0.15s ease, transform 0.1s ease;
}
.btn:hover { background: var(--flare-hover); }
.btn:active { background: var(--flare-press); transform: translateY(1px); }
.btn:disabled { background: #E7D9CE; color: var(--faint); box-shadow: none; cursor: not-allowed; }
.btn.big { min-height: 54px; border-radius: 18px; font-size: 16px; box-shadow: 0 12px 24px -12px rgba(217, 58, 43, 0.95); }
.btn.secondary { background: transparent; color: var(--body); border: 1.5px solid var(--line3); box-shadow: none; font-weight: 700; }
.btn.secondary:hover { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn.outline { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); box-shadow: none; }
.btn.outline:hover { background: var(--ink); color: var(--paper); }
.btn.marigold { background: var(--marigold); color: var(--ink); box-shadow: 0 12px 24px -12px rgba(255, 194, 71, 0.8); }
.btn.marigold:hover { background: var(--marigold-hover); }
.btn.ghost { background: transparent; color: var(--blush-ink); box-shadow: none; min-height: 46px; font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; }
.btn.ghost:hover { background: transparent; color: var(--flare); }
.btn.pill-ink { width: auto; min-height: 34px; padding: 0 14px; border-radius: 99px; background: var(--ink); color: var(--paper); font-size: 13px; font-weight: 700; box-shadow: none; }
.btn.pill-ink:hover { background: var(--flare); }
.icon-btn { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--soft); display: grid; place-items: center; }
.icon-btn:hover { background: #EED7C4; }
.icon-btn.plain { background: transparent; }
.icon-btn.plain:hover { background: var(--soft); }

/* ---------- cards & rows ---------- */
.row { display: flex; align-items: center; gap: 11px; padding: 10px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; width: 100%; text-align: left; }
.row:disabled { cursor: default; }
.row:active { transform: none; }
.row.dim { background: var(--strip); border-color: rgba(43, 18, 48, 0.06); opacity: 0.85; }
.row .txt { flex: 1; min-width: 0; }
.row .txt b { display: block; font-size: 13.5px; font-weight: 800; color: var(--ink); }
.row .txt small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row.dim .txt b { color: var(--body); }
.row.dim .txt small { color: var(--faint); }
.list { display: flex; flex-direction: column; gap: 8px; }

.duo { position: relative; width: 60px; height: 38px; flex: 0 0 auto; }
.duo .av { position: absolute; top: 0; width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 2px solid var(--card); display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.duo .av:first-child { left: 0; background: var(--blush); color: var(--blush-ink); }
.duo .av:last-child { left: 22px; background: #FFE7BC; color: var(--marigold-ink); }
.duo.sm { width: 52px; height: 32px; }
.duo.sm .av { width: 32px; height: 32px; font-size: 11.5px; }
.duo.sm .av:last-child { left: 20px; }
.av-single { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--blush); display: grid; place-items: center; font-size: 15px; font-weight: 800; color: var(--blush-ink); flex: 0 0 auto; }

/* ---------- rate ---------- */
.pair-card {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 26px; overflow: hidden;
  box-shadow: 0 14px 30px -20px rgba(43, 18, 48, 0.5); touch-action: pan-y; user-select: none; -webkit-user-select: none;
  transition: transform 0.12s ease, opacity 0.12s ease;
}
.pair-card.enter { animation: cardRise 0.22s ease both; }
@keyframes cardRise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.pair-card.leaving { transform: scale(0.96); opacity: 0; }
.pair-card.fly-left { transition: transform 0.25s ease, opacity 0.25s ease; transform: translateX(-120%) rotate(-10deg) !important; opacity: 0; }
.pair-card.fly-right { transition: transform 0.25s ease, opacity 0.25s ease; transform: translateX(120%) rotate(10deg) !important; opacity: 0; }
.pair-photos { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2px; height: 212px; background: var(--photo); }
.pair-photos img { width: 100%; height: 100%; object-fit: cover; display: block; background: var(--photo); pointer-events: none; }
.pair-photos img:first-child { border-radius: 90px 12px 0 0; }
.pair-photos img:nth-child(2) { border-radius: 12px 90px 0 0; }
.venn-badge { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%; background: var(--card); box-shadow: 0 6px 16px -6px rgba(43, 18, 48, 0.5); display: grid; place-items: center; }
.pair-people { display: grid; grid-template-columns: 1fr 1px 1fr; }
.pair-people .vline { background: var(--line); }
.pp { padding: 12px 13px 10px; min-width: 0; }
.pp b { display: block; font-size: 14.5px; font-weight: 800; color: var(--ink); letter-spacing: -0.1px; }
.pp .city { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; color: var(--label); margin: 3px 0 6px; }
.pp p { margin: 0; font-size: 12px; line-height: 1.38; color: var(--body); text-wrap: pretty; }
.pair-foot { display: flex; align-items: center; justify-content: space-between; padding: 10px 13px; border-top: 1px solid var(--line); background: var(--strip); font-size: 11.5px; font-weight: 600; color: var(--muted); }
.pair-foot .accent { font-weight: 700; color: var(--blush-ink); }

.hearts { display: flex; gap: 7px; margin-top: 14px; }
.hearts button {
  flex: 1; min-height: 76px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 8px 2px;
  border: 1.5px solid rgba(43, 18, 48, 0.1); border-radius: 18px; background: var(--card); transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}
.hearts button:hover { border-color: var(--flare); transform: translateY(-2px); }
.hearts button.top-pick { border-color: var(--flare); background: var(--flare-soft); }
.hearts button.top-pick span { color: var(--flare-hover); }
.hearts button.cute span { color: var(--body); }
.hearts button span { font-size: 10px; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase; color: var(--muted); }
.hearts button.pulse svg { animation: pulse 0.3s ease; }
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.25); } 100% { transform: scale(1); } }
.hint { margin: 9px 0 0; text-align: center; font-size: 11px; font-weight: 600; color: var(--faint); }

.guest-bar { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 12px 14px; border-radius: 20px; background: var(--marigold); }
.guest-bar .txt { flex: 1; }
.guest-bar .txt b { display: block; font-size: 12.5px; font-weight: 800; color: var(--ink); }
.guest-bar .txt span { display: block; font-size: 12px; color: var(--marigold-ink2); margin-top: 1px; }
.guest-bar .btn { min-height: 38px; }

/* ---------- empty states ---------- */
.empty-rate { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 30px 12px 10px; }
.empty-rate .title { font-size: 27px; }
.empty-rate p { margin: 11px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.empty-stat { display: flex; align-items: center; gap: 12px; width: 100%; margin: 22px 0 26px; padding: 13px 16px; border-radius: 20px; background: var(--marigold-soft); text-align: left; }
.empty-stat .num { font-family: var(--display); font-size: 26px; color: var(--ink); line-height: 1; }
.empty-stat span { font-size: 12px; line-height: 1.35; color: var(--marigold-ink2); font-weight: 600; }
.rings { position: relative; width: 170px; height: 96px; margin-bottom: 26px; }
.rings i { position: absolute; width: 74px; height: 74px; border-radius: 50%; border: 2px dashed var(--dash); }
.rings i:nth-child(1) { left: 0; top: 14px; }
.rings i:nth-child(2) { left: 48px; top: 0; background: rgba(255, 251, 244, 0.6); }
.rings i:nth-child(3) { left: 96px; top: 14px; }
.rings .float-heart { position: absolute; left: 50%; top: 52px; transform: translateX(-50%); width: 38px; height: 38px; border-radius: 50%; background: var(--marigold); display: grid; place-items: center; animation: floaty 3s ease-in-out infinite; }
.rings.sm { width: 120px; height: 62px; margin-bottom: 18px; }
.rings.sm i { width: 62px; height: 62px; top: 0; }
.rings.sm i:nth-child(1) { left: 0; }
.rings.sm i:nth-child(2) { left: 44px; background: none; }
.rings.sm .float-heart { top: 19px; width: 26px; height: 26px; background: var(--soft); animation: none; }
@keyframes floaty { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -5px); } }
.empty-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 26px 6px 22px; border-radius: 26px; background: var(--card); border: 1px dashed var(--dash); }
.empty-card h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 23px; line-height: 1.05; color: var(--ink); }
.empty-card p { margin: 9px 14px 0; font-size: 13px; line-height: 1.45; color: var(--muted); text-wrap: pretty; }
.progress-card { padding: 12px 13px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.progress-card .pr { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.progress-card .pr b { font-size: 13px; font-weight: 800; color: var(--ink); }
.progress-card .pr span { font-size: 11px; font-weight: 700; color: var(--blush-ink); }
.bar { height: 7px; border-radius: 99px; background: var(--track); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: var(--marigold); transition: width 0.5s ease-out; }
.bar i.hot { background: var(--flare); }

/* ---------- top ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stats div { padding: 11px 10px; border-radius: 18px; background: var(--card); border: 1px solid rgba(43, 18, 48, 0.08); }
.stats div:last-child { background: var(--ink); border-color: var(--ink); }
.stats b { display: block; font-family: var(--display); font-weight: 400; font-size: 21px; color: var(--ink); line-height: 1; }
.stats div:last-child b { color: var(--marigold); }
.stats span { display: block; font-size: 9.5px; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase; color: var(--label); margin-top: 5px; }
.stats div:last-child span { color: #C9AFCB; }
.trend { background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; padding: 0 13px; }
.trend .tr { display: flex; align-items: center; gap: 11px; padding: 11px 0; }
.trend .tr + .tr { border-top: 1px solid rgba(43, 18, 48, 0.07); }
.trend .rank { font-family: var(--display); font-size: 17px; color: var(--flare); width: 16px; flex: 0 0 auto; }
.trend .name { flex: 1; min-width: 0; font-size: 13px; font-weight: 700; color: var(--ink); }
.trend .sc { text-align: right; }
.trend .sc b { display: block; font-family: var(--display); font-weight: 400; font-size: 16px; color: var(--ink); line-height: 1; }
.trend .sc small { display: block; font-size: 10px; font-weight: 700; color: var(--faint); margin-top: 2px; }

/* ---------- matches ---------- */
.intro-card { position: relative; border-radius: 26px; background: var(--card); border: 1.5px solid var(--marigold); box-shadow: 0 16px 34px -22px rgba(43, 18, 48, 0.55); padding: 16px 16px 15px; text-align: center; margin-bottom: 4px; }
.intro-card > .pill.intro { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); font-size: 10px; letter-spacing: 0.8px; padding: 5px 11px; }
.intro-card h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 22px; line-height: 1.05; color: var(--ink); }
.intro-card p { margin: 8px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--body); text-wrap: pretty; }
.intro-card .who { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.intro-card .who b { font-size: 14px; }
.intro-card .who span { font-size: 11px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: var(--label); }
.intro-card .bio { margin: 5px 0 14px; font-size: 12.5px; line-height: 1.4; }
.intro-card .actions { display: flex; gap: 9px; }
.intro-card .actions .btn { flex: 1; }
.intro-card .actions .btn.primary { flex: 1.3; }
.tilt-duo { position: relative; display: flex; align-items: center; justify-content: center; margin: 8px 0 12px; }
.tilt-duo img { width: 74px; height: 74px; border-radius: 50%; object-fit: cover; border: 3px solid var(--card); box-shadow: 0 0 0 1px var(--line2); background: var(--photo); }
.tilt-duo img:first-child { transform: rotate(-5deg); }
.tilt-duo img:last-child { transform: rotate(5deg); margin-left: -16px; }

/* ---------- chat ---------- */
.chat-head { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 11px; padding: 9px 14px 11px; background: var(--paper); border-bottom: 1px solid var(--line); }
.chat-head img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--photo); box-shadow: 0 0 0 1px var(--line2); flex: 0 0 auto; }
.chat-head .txt { flex: 1; min-width: 0; }
.chat-head .txt b { display: block; font-size: 15px; font-weight: 800; letter-spacing: -0.1px; }
.chat-head .txt small { display: flex; align-items: center; gap: 4px; margin-top: 1px; font-size: 11px; font-weight: 700; color: var(--blush-ink); }
.msgs { display: flex; flex-direction: column; gap: 10px; padding: 16px 16px 10px; min-height: calc(100dvh - 140px); }
.msg-intro { align-self: center; padding: 7px 13px; border-radius: 99px; background: var(--soft); font-size: 11px; font-weight: 700; color: var(--muted); text-align: center; }
.msg { max-width: 80%; padding: 11px 14px; font-size: 13px; line-height: 1.4; animation: msgIn 0.2s ease both; }
.msg.theirs { align-self: flex-start; border-radius: 20px 20px 20px 6px; background: var(--card); border: 1px solid var(--line); color: var(--ink); }
.msg.mine { align-self: flex-end; border-radius: 20px 20px 6px 20px; background: var(--flare); color: var(--on-ink); }
.msg time { display: block; font-size: 10px; font-weight: 700; opacity: 0.7; margin-top: 4px; }
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.composer { position: sticky; bottom: 0; display: flex; align-items: center; gap: 9px; padding: 11px 14px calc(16px + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line); }
.composer input { flex: 1; min-height: 46px; padding: 0 16px; border: 1.5px solid var(--line2); border-radius: 99px; background: var(--strip); font-size: 13.5px; color: var(--ink); outline: none; }
.composer input:focus { border-color: var(--flare); }
.composer button { width: 46px; height: 46px; flex: 0 0 auto; border: 0; border-radius: 50%; background: var(--flare); display: grid; place-items: center; }
.composer button:hover { background: var(--flare-hover); }

/* ---------- forms / sheet ---------- */
.sheet { position: fixed; inset: 0; z-index: 30; background: var(--paper); display: flex; flex-direction: column; animation: sheetIn 0.25s ease; }
@keyframes sheetIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (min-width: 640px) { .sheet { left: 50%; right: auto; width: 100%; max-width: 430px; margin-left: -215px; } }
.sheet-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 10px; flex: 0 0 auto; }
.sheet-body { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 18px 20px; margin: 0; }
.sheet-body .title { margin: 7px 0 4px; font-size: 27px; }
.sheet-body .lede { margin-bottom: 12px; }
.sheet-foot { flex: 0 0 auto; padding: 12px 18px calc(20px + env(safe-area-inset-bottom)); background: linear-gradient(rgba(255, 244, 232, 0), var(--paper) 40%); }
.sheet-foot .note { margin: 9px 0 0; text-align: center; font-size: 10.5px; line-height: 1.4; color: var(--muted); }
.progress { height: 5px; border-radius: 99px; background: var(--track); overflow: hidden; margin-bottom: 16px; }
.progress i { display: block; height: 100%; border-radius: 99px; background: var(--flare); transition: width 0.4s ease; }
.fields { display: flex; flex-direction: column; gap: 13px; }
.field { display: block; }
.field > span, .seg-label { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: 0.7px; text-transform: uppercase; color: var(--label); margin-bottom: 5px; }
.field input, .field textarea { width: 100%; min-height: 46px; padding: 0 13px; border: 1.5px solid var(--line2); border-radius: 14px; background: var(--card); font-size: 14px; font-weight: 600; color: var(--ink); outline: none; }
.field textarea { height: 88px; padding: 11px 13px; font-size: 13px; line-height: 1.35; font-weight: 500; resize: none; }
.field input:focus, .field textarea:focus { border-color: var(--flare); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.grid-name { display: grid; grid-template-columns: 1.9fr 1fr; gap: 9px; }
.grid-photo { display: grid; grid-template-columns: 88px 1fr; gap: 10px; align-items: end; }
.seg { display: flex; gap: 7px; }
.seg button { flex: 1; min-height: 44px; border: 1.5px solid var(--line2); border-radius: 99px; background: var(--card); font-size: 13px; font-weight: 700; color: var(--body); }
.seg button.wide { flex: 1.25; }
.seg button:hover { border-color: var(--ink); }
.seg button.on { border-color: var(--flare); background: var(--flare-soft); color: var(--flare-hover); font-weight: 800; }
.photo-slot { position: relative; width: 88px; height: 88px; border-radius: 18px; overflow: hidden; background: var(--soft); border: 0; padding: 0; display: grid; place-items: center; }
.photo-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-slot span { font-size: 10.5px; font-weight: 700; color: var(--label); text-align: center; padding: 0 8px; }
.photo-slot input { display: none; }
.err { color: var(--flare-hover); font-size: 12.5px; font-weight: 600; background: var(--flare-soft); padding: 9px 12px; border-radius: 12px; }
.switch { margin-top: 14px; text-align: center; font-size: 13px; color: var(--muted); }
.switch a { font-weight: 700; }

/* ---------- me ---------- */
.profile { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 10px 0 0; }
.profile img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 4px solid var(--card); box-shadow: 0 0 0 1px var(--line2), 0 16px 30px -18px rgba(43, 18, 48, 0.5); background: var(--photo); }
.profile h2 { margin: 12px 0 2px; font-family: var(--display); font-weight: 400; font-size: 27px; line-height: 1.04; }
.profile .city { font-size: 11px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: var(--label); }
.profile .bio { margin: 10px 0 18px; max-width: 320px; font-size: 13.5px; line-height: 1.45; color: var(--body); }
.profile .btn + .btn { margin-top: 6px; }
.join-card { padding: 22px 18px; border-radius: 26px; background: var(--card); border: 1px solid var(--line); text-align: center; }
.join-card .title { font-size: 24px; margin-top: 6px; }
.join-card .lede { margin-bottom: 16px; }
.join-card .btn + .btn { margin-top: 6px; }

/* ---------- tab bar ---------- */
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: grid; grid-template-columns: repeat(4, 1fr); align-items: end;
  padding: 8px 6px calc(14px + env(safe-area-inset-bottom));
  background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -18px rgba(43, 18, 48, 0.45);
}
@media (min-width: 640px) { .tabs { left: 50%; right: auto; width: 100%; max-width: 430px; margin-left: -215px; } }
body.in-chat .tabs, body.in-chat .top { display: none; }
.tabs button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; min-height: 48px; padding: 6px 0 2px; border: 0; background: transparent; color: var(--muted); }
.tabs button:active { transform: none; }
.tabs button span { font-size: 11px; font-weight: 500; letter-spacing: 0.2px; }
.tabs button svg { fill: transparent; stroke: currentColor; }
.tabs button svg .nofill { fill: none; }
.tabs button.active { color: var(--flare); }
.tabs button.active span { font-weight: 800; }
.tabs button.active svg { fill: var(--blush); }
.tabs button.active svg .nofill { fill: none; }
.tabs button.nudge svg { animation: nudge 0.3s ease; }
@keyframes nudge { 50% { transform: translateY(-2px); } }
.badge { position: absolute; top: 2px; left: 50%; margin-left: 6px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; background: var(--flare); border: 2px solid var(--card); color: #fff; font-size: 10px; font-weight: 800; line-height: 13px; text-align: center; animation: pop 0.35s var(--spring) both; }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }

/* ---------- toast & match overlay ---------- */
.toast { position: fixed; left: 50%; bottom: calc(var(--tabs-h) + 22px); transform: translateX(-50%); z-index: 40; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 99px; font-size: 13px; font-weight: 700; box-shadow: 0 8px 24px rgba(43, 18, 48, 0.35); max-width: 90vw; text-align: center; animation: fadeUp 0.2s ease; }
.overlay { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 26px; background: radial-gradient(120% 80% at 50% 25%, rgba(43, 18, 48, 0.86), rgba(43, 18, 48, 0.96)); animation: scrim 0.2s ease both; overflow: hidden; }
@keyframes scrim { from { opacity: 0; } to { opacity: 1; } }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -20px; display: block; animation: drop 1.6s ease-in both; }
@keyframes drop { 0% { transform: translateY(0) rotate(0); opacity: 0; } 10% { opacity: 1; } 100% { transform: translateY(100vh) rotate(260deg); opacity: 0.9; } }
.match-duo { position: relative; display: flex; align-items: center; justify-content: center; margin-bottom: 26px; }
.match-duo img { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; border: 4px solid var(--paper); box-shadow: 0 16px 30px -14px rgba(0, 0, 0, 0.6); background: var(--photo); }
.match-duo img:first-child { transform: rotate(-6deg); animation: slideL 0.6s var(--spring) both; }
.match-duo img:nth-child(2) { transform: rotate(6deg); margin-left: -26px; animation: slideR 0.6s var(--spring) both; }
@keyframes slideL { from { transform: translateX(-160px) rotate(-6deg); opacity: 0; } to { transform: rotate(-6deg); opacity: 1; } }
@keyframes slideR { from { transform: translateX(160px) rotate(6deg); opacity: 0; } to { transform: rotate(6deg); opacity: 1; } }
.match-duo .heart-badge { position: absolute; bottom: -14px; left: 50%; transform: translateX(-50%); width: 40px; height: 40px; border-radius: 50%; background: var(--flare); border: 3px solid var(--paper); display: grid; place-items: center; animation: badgePop 0.45s var(--spring) 0.45s both, floatBadge 2.4s ease-in-out 0.9s infinite; }
@keyframes badgePop { from { transform: translateX(-50%) scale(0); } to { transform: translateX(-50%) scale(1); } }
@keyframes floatBadge { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-5px); } }
.overlay .eyebrow { color: var(--marigold); letter-spacing: 1.6px; font-size: 11px; animation: fadeUp 0.3s ease 0.55s both; }
.overlay h2 { margin: 10px 0 0; font-family: var(--display); font-weight: 400; font-size: 33px; line-height: 1.02; text-align: center; color: var(--on-ink); letter-spacing: -0.4px; animation: fadeUp 0.3s ease 0.63s both; }
.overlay p { margin: 12px 0 0; max-width: 290px; text-align: center; font-size: 13.5px; line-height: 1.5; color: var(--on-ink-soft); text-wrap: pretty; animation: fadeUp 0.3s ease 0.71s both; }
.overlay p strong { color: var(--on-ink); }
.overlay .chip { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; padding: 7px 14px; border-radius: 99px; background: rgba(255, 244, 232, 0.14); border: 1px solid rgba(255, 244, 232, 0.26); font-size: 11.5px; font-weight: 700; color: var(--paper); animation: fadeUp 0.3s ease 0.79s both; }
.overlay .btn.marigold { margin-top: 26px; max-width: 338px; animation: fadeUp 0.3s ease 0.87s both; }
.overlay .btn.ghost { margin-top: 4px; color: var(--on-ink-soft); animation: fadeUp 0.3s ease 0.95s both; }
.overlay .btn.ghost:hover { color: var(--on-ink); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .pair-card.fly-left, .pair-card.fly-right { transform: none !important; }
}
