/* A dating app, played straight. Dark theme, system type, no logo. */
:root {
  --bg: #0c0c0f; --panel: #131317; --panel2: #1b1b21; --line: #26262e; --text: #f5f5f7; --muted: #9a9aa6;
  --bubble: #24242b; --nope: #ff4767; --like: #1fd895; --gold: #f2b84b; --accent: #ff4767; --tabs-h: 58px;
  --you: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Crect width='100' height='100' fill='%2333333c'/%3E%3Ccircle cx='50' cy='39' r='17' fill='%2370707c'/%3E%3Cpath d='M17 92c3-19 17-30 33-30s30 11 33 30z' fill='%2370707c'/%3E%3C/svg%3E");
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; background: var(--bg); color: var(--text); overflow: hidden;
  font: 16px/1.4 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
svg { display: block; }
[hidden] { display: none !important; }

.you { display: inline-block; border-radius: 50%; background: var(--you) center / cover; flex: none; }
.you.big { width: 96px; height: 96px; border: 4px solid #fff; }

/* ---------- loader: the radar */
.loader { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--bg); transition: opacity .45s ease, visibility .45s; }
.loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.radar { position: relative; width: 132px; height: 132px; display: grid; place-items: center; }
.radar > i { position: absolute; inset: 0; border-radius: 50%; background: rgba(255, 71, 103, .22); animation: pulse 2.7s cubic-bezier(.2, .6, .35, 1) infinite; }
.radar > i:nth-child(2) { animation-delay: .9s; } .radar > i:nth-child(3) { animation-delay: 1.8s; }
@keyframes pulse { from { transform: scale(.7); opacity: .95; } to { transform: scale(3.3); opacity: 0; } }
.radar .ring { position: absolute; inset: 6px; width: 120px; height: 120px; transform: rotate(-90deg); }
.radar .ring circle { fill: none; stroke: rgba(255, 255, 255, .12); stroke-width: 3; }
.radar .ring .arc { stroke: #fff; stroke-linecap: round; stroke-dasharray: 289; stroke-dashoffset: 289; transition: stroke-dashoffset .3s; }
.radar .you { position: relative; z-index: 1; }
.radar.small { width: 110px; height: 110px; }
.radar.small .you.big { width: 84px; height: 84px; }

/* ---------- app frame */
.app { position: fixed; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
.side { display: none; }
.main { position: relative; overflow: hidden; min-height: 0; min-width: 0; }
.view { position: absolute; inset: 0; display: none; flex-direction: column; min-height: 0; z-index: 1; }
.view.on { display: flex; }
.view-head { padding: max(14px, env(safe-area-inset-top)) 16px 6px; }
.view-head h1 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.view-scroll { flex: 1; overflow-y: auto; overflow-x: hidden; min-height: 0; overscroll-behavior: contain; }

.tabs { display: flex; justify-content: space-around; align-items: center; height: calc(var(--tabs-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom); background: var(--bg); border-top: 1px solid var(--line); position: relative; z-index: 5; }
.tab { position: relative; background: none; border: 0; width: 72px; height: 100%; display: grid; place-items: center; }
.tab svg { width: 27px; height: 27px; fill: #5b5b66; transition: fill .2s, transform .2s; }
.tab.on svg { fill: var(--accent); }
.tab:active svg { transform: scale(.9); }
.dot { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.tab .dot { top: 13px; right: 20px; }

/* ---------- discover */
.ambient { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ambient i { position: absolute; inset: -12%; background: center / cover no-repeat; filter: blur(70px) saturate(1.25); opacity: 0; transition: opacity 1s ease; }
.ambient i.on { opacity: .26; }
#v-deck { padding: max(8px, env(safe-area-inset-top)) 8px 0; align-items: stretch; }
.deck { position: relative; flex: 1 1 auto; min-height: 0; container-type: size; }
.stack { position: absolute; inset: 0; margin: auto; width: min(100cqw, 66.7cqh); height: min(100cqh, 168cqw); }
.card { position: absolute; inset: 0; border-radius: 14px; overflow: hidden; background: #000; touch-action: none; user-select: none; -webkit-user-select: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45); transform-origin: 50% 50%; will-change: transform; cursor: grab; }
.card.top:active { cursor: grabbing; }
.card:not(.top) { pointer-events: none; }
.card.enter { animation: deal .5s cubic-bezier(.2, .9, .3, 1.15) both; }
@keyframes deal { from { transform: translateY(26px) scale(.94); opacity: 0; } }
.card.nudge-r { animation: nudgeR .32s ease; } .card.nudge-l { animation: nudgeL .32s ease; }
@keyframes nudgeR { 40% { transform: perspective(900px) rotateY(-7deg); } }
@keyframes nudgeL { 40% { transform: perspective(900px) rotateY(7deg); } }

.car { position: absolute; inset: 0; overflow: hidden; background: #000; }
.ph { position: absolute; inset: 0; }
.ph-bg { position: absolute; inset: -40px; background: center / cover no-repeat; filter: blur(26px) brightness(.55) saturate(1.2); }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 42%; -webkit-user-drag: none; user-select: none; pointer-events: none; }
.ph.cover img { object-fit: cover; object-position: 50% 30%; }
.ph.cover .ph-bg { display: none; }
.bars { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; gap: 4px; z-index: 3; pointer-events: none; }
.bars i { flex: 1; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .3); box-shadow: 0 0 2px rgba(0, 0, 0, .25); }
.bars i.on { background: #fff; }

.stamp { position: absolute; top: 46px; z-index: 4; padding: 2px 12px 0; border: 5px solid currentColor; border-radius: 10px; opacity: 0; pointer-events: none;
  font: 900 46px/1.05 -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif; letter-spacing: .04em; text-shadow: 0 0 1px rgba(0,0,0,.2); }
.stamp.like { left: 24px; color: var(--like); transform: rotate(-20deg); }
.stamp.nope { right: 24px; color: var(--nope); transform: rotate(20deg); }

.info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 110px 64px 20px 18px; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, .55) 38%, rgba(0, 0, 0, .9)); text-shadow: 0 1px 6px rgba(0, 0, 0, .35); }
.info h2 { margin: 0; font-size: clamp(26px, 8cqw, 34px); font-weight: 800; line-height: 1.08; letter-spacing: -.015em; }
.job { display: flex; gap: 7px; align-items: center; margin: 7px 0 0; font-size: 15px; font-weight: 500; }
.job svg { width: 16px; height: 16px; fill: currentColor; flex: none; }
.info .bio { margin: 8px 0 0; font-size: 15px; color: rgba(255, 255, 255, .88); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.open-btn { position: absolute; right: 16px; bottom: 22px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .2); display: grid; place-items: center; pointer-events: auto; backdrop-filter: blur(6px); }
.open-btn svg { width: 20px; height: 20px; fill: #fff; }

.actions { position: relative; z-index: 2; flex: none; display: flex; justify-content: center; align-items: center; gap: 22px; padding: 14px 0 16px; }
.act { --p: 0; position: relative; display: grid; place-items: center; width: 66px; height: 66px; border-radius: 50%; border: 0; background: var(--panel2);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .45), inset 0 0 0 1.5px rgba(255, 255, 255, .06); transform: scale(calc(1 + var(--p) * .14)); transition: transform .18s ease, background .18s, opacity .2s; }
.act svg { width: 32px; height: 32px; fill: currentColor; transition: fill .15s; }
.act.nope { color: var(--nope); } .act.like { color: var(--like); }
.act.nope::after, .act.like::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: currentColor; opacity: calc(var(--p) * .95); z-index: -0; }
.act > svg { position: relative; z-index: 1; }
.act.hot svg { fill: #fff; }
.act.rewind { width: 50px; height: 50px; color: var(--gold); }
.act.rewind svg { width: 24px; height: 24px; }
.act:disabled { opacity: .35; cursor: default; }
@media (hover: hover) { .act:not(:disabled):hover { transform: scale(1.08); } }
.act:not(:disabled):active { transform: scale(.92); }

.empty { position: absolute; inset: 0 0 100px; display: grid; place-content: center; justify-items: center; gap: 34px; color: var(--muted); text-align: center; z-index: 1; }
.empty p { margin: 0; font-size: 16px; }

/* ---------- likes you */
.likes-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 8px 12px 24px; }
.tile { position: relative; display: block; aspect-ratio: 2 / 3; border-radius: 12px; overflow: hidden; padding: 0; border: 0; background: #1d1d23; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(var(--blur, 5px)) saturate(1.1); transform: scale(1.14); transition: filter .55s ease, transform .55s ease; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 55%, rgba(0, 0, 0, .75)); opacity: 0; transition: opacity .5s; }
.tile .t-name { position: absolute; left: 9px; right: 9px; bottom: 8px; z-index: 1; text-align: left; font-weight: 800; font-size: 15px; line-height: 1.15; opacity: 0; transition: opacity .4s .15s; text-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.tile.clear img { --blur: 0px; transform: scale(1); }
.tile.clear::after, .tile.clear .t-name { opacity: 1; }
@media (hover: hover) { .tile:not(.clear):hover img { --blur: 2.5px; } }
.tile:active { transform: scale(.98); }

/* ---------- chats list */
.chats { padding: max(10px, env(safe-area-inset-top)) 0 24px; }
.sec-h { margin: 12px 16px 10px; font-size: 15px; font-weight: 800; color: var(--accent); }
.new-row { display: flex; gap: 10px; overflow-x: auto; padding: 0 16px 10px; scrollbar-width: none; }
.new-row::-webkit-scrollbar { display: none; }
.nm { flex: none; width: 86px; padding: 0; border: 0; background: none; text-align: center; }
.nm-pic { position: relative; display: block; width: 86px; height: 116px; border-radius: 10px; overflow: hidden; background: #1d1d23; }
.nm-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nm-pic .dot { top: 6px; right: 6px; border: 2px solid var(--bg); width: 13px; height: 13px; }
.nm-name { display: block; margin-top: 6px; font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nm.likes .nm-pic { box-shadow: inset 0 0 0 2px var(--gold); }
.nm.likes .nm-pic img { filter: blur(7px); transform: scale(1.2); }
.nm.likes .nm-pic span { position: absolute; inset: 0; display: grid; place-items: center; }
.nm.likes .nm-pic svg { width: 34px; height: 34px; fill: #fff; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .5)); }
.rows { display: grid; }
.row { display: flex; gap: 13px; align-items: center; width: 100%; padding: 9px 16px; border: 0; background: none; text-align: left; }
.row:hover { background: rgba(255, 255, 255, .03); }
.row img { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; flex: none; }
.row span { display: grid; min-width: 0; gap: 2px; }
.row b { font-size: 16px; font-weight: 800; }
.row small { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; gap: 5px; align-items: center; }
.row small svg { width: 15px; height: 15px; fill: currentColor; flex: none; }
.row.on { background: rgba(255, 255, 255, .06); }
.none { margin: 4px 16px; color: var(--muted); font-size: 14px; }

/* ---------- chat */
.chat { position: fixed; inset: 0; z-index: 30; display: flex; background: var(--bg); }
.chat-col { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.chat-head { display: flex; align-items: center; gap: 2px; padding: max(8px, env(safe-area-inset-top)) 10px 8px 4px; border-bottom: 1px solid var(--line); background: var(--bg); }
.icon-btn { width: 44px; height: 44px; border: 0; background: none; display: grid; place-items: center; border-radius: 50%; }
.icon-btn svg { width: 26px; height: 26px; fill: var(--accent); }
.who { display: flex; align-items: center; gap: 10px; border: 0; background: none; padding: 2px 6px; text-align: left; min-width: 0; border-radius: 10px; }
.who img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.who span { display: grid; min-width: 0; }
.who b { font-size: 17px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who small { font-size: 12px; color: var(--muted); letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-scroll { position: relative; flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 6px 12px 14px; overscroll-behavior: contain; scroll-behavior: auto; }
.matched-at { text-align: center; padding: 22px 0 24px; color: var(--muted); font-size: 14px; }
.matched-at img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; display: block; margin: 0 auto 12px; }
.matched-at b { color: var(--text); }
.matched-at small { display: block; margin-top: 3px; font-size: 12px; }

.thread.ab-media { display: flex; flex-direction: column; gap: 4px; --ab-chrome: 170px; --ab-gap: 8px; --ab-fg: var(--text); --ab-muted: var(--muted); --ab-accent: var(--accent); }
.msg { position: relative; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.msg.in { padding-left: 38px; }
.msg.gs { margin-top: 14px; }
.msg .av { position: absolute; left: 0; bottom: 2px; width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.msg.pop { animation: pop .32s cubic-bezier(.2, .9, .3, 1.2) both; transform-origin: 0 100%; }
@keyframes pop { from { transform: scale(.82); opacity: 0; } }
.bubble { max-width: min(80%, 560px); background: var(--bubble); border-radius: 20px 20px 20px 6px; padding: 9px 14px 10px; font-size: 15.5px; line-height: 1.42; overflow-wrap: anywhere; }
.bubble .t-title { display: block; font-weight: 800; }
.bubble .t-title + .t-body { display: block; margin-top: 3px; }
.bubble.credits { color: #c9c9d2; font-size: 14px; }
.bubble.media { padding: 0; overflow: hidden; }
.bubble.film { width: min(88%, 520px); max-width: none; }
.bubble.film.portrait { width: min(64vw, 300px, calc((100vh - 190px) * 9 / 16)); width: min(64vw, 300px, calc((100svh - 190px) * 9 / 16)); }
.bubble.film .ab-films { display: block; }
.bubble.film .ab-portrait .ab-film { width: 100%; }
.bubble.film .ab-frame { background: #000; }
.bubble.film figcaption { display: flex; justify-content: space-between; gap: 10px; margin: 0; padding: 8px 13px 10px; font-size: 14px; color: var(--text); font-weight: 600; }
.bubble.film figcaption .dur { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.bubble.photo { padding: 0; background: none; max-width: min(80%, 460px); }
.bubble.photo .ab-image { justify-items: start; }
.bubble.photo .ab-zoom { border-radius: 18px; }
.bubble.photo img { border-radius: 18px; max-height: min(64vh, 560px); max-height: min(64svh, 560px); background: #1d1d23; }
.bubble.voice { width: min(94%, 360px); max-width: none; padding: 10px 12px 11px; }
.bubble.voice figcaption { margin: 0 0 7px 2px; font-size: 13px; font-weight: 700; color: #d6d6de; }
.bubble.voice audio { display: none; }
.vn { display: flex; align-items: center; gap: 9px; }
.vn-play { width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; display: grid; place-items: center; flex: none; }
.vn-play svg { width: 18px; height: 18px; fill: #111; }
.vn-wave { flex: 1; height: 34px; display: flex; align-items: center; gap: 2px; cursor: pointer; touch-action: pan-y; min-width: 0; }
.vn-wave i { flex: 1; min-width: 2px; height: calc(var(--h, .16) * 100%); border-radius: 2px; background: rgba(255, 255, 255, .32); transition: height .6s cubic-bezier(.2, .9, .3, 1); }
.vn-wave i.on { background: #fff; }
.vn-time { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 32px; text-align: right; }
.vn-speed { border: 0; border-radius: 11px; padding: 3px 7px; background: rgba(255, 255, 255, .13); font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; min-width: 38px; }
.typing .bubble { display: flex; gap: 5px; padding: 14px 15px; }
.typing .bubble i { width: 8px; height: 8px; border-radius: 50%; background: #8d8d98; animation: blink 1.1s infinite ease-in-out; }
.typing .bubble i:nth-child(2) { animation-delay: .15s; } .typing .bubble i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }
.composer { display: flex; gap: 8px; align-items: center; padding: 9px 12px max(9px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg); }
.composer input { flex: 1; min-width: 0; height: 42px; border-radius: 21px; border: 1px solid var(--line); background: var(--panel); color: var(--text); padding: 0 16px; font: 16px/1 inherit; }
.composer input::placeholder { color: #6f6f7a; }
.composer .send { display: flex; align-items: center; gap: 6px; height: 42px; padding: 0 6px; color: var(--accent); font-weight: 800; font-size: 15px; text-decoration: none; flex: none; border-radius: 10px; }
.composer .send svg { width: 20px; height: 20px; fill: currentColor; }
.composer .send.off { color: #4b4b55; cursor: default; }
.composer .send:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.chat-side { display: none; width: 360px; flex: none; border-left: 1px solid var(--line); overflow-y: auto; background: var(--panel); }

/* ---------- profile */
.profile { position: fixed; inset: 0; z-index: 40; background: var(--bg); overflow-y: auto; overscroll-behavior: contain; }
.profile.in .pf { animation: rise .32s cubic-bezier(.2, .9, .3, 1) both; }
@keyframes rise { from { transform: translateY(40px); opacity: 0; } }
.pf { position: relative; min-height: 100%; background: var(--bg); }
.pf-photos { position: relative; height: min(64svh, 640px); height: min(64vh, 640px); cursor: pointer; user-select: none; }
.pf-photos .car { border-radius: 0; }
.pf-close { position: absolute; right: 16px; bottom: -26px; z-index: 5; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--accent); display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .45); }
.pf-close svg { width: 26px; height: 26px; fill: #fff; }
.pf-body { padding: 18px 20px 130px; }
.pf-body h2 { margin: 0; font-size: 30px; font-weight: 800; line-height: 1.1; letter-spacing: -.015em; padding-right: 60px; }
.pf-body .job { color: #d0d0d8; }
.pf-body hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.pf-body h3 { margin: 0 0 6px; font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.pf-body p.about { margin: 0; font-size: 16px; line-height: 1.5; color: #e9e9ee; }
.pf-actions { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; display: flex; justify-content: center; gap: 28px; padding: 30px 0 max(22px, env(safe-area-inset-bottom)); background: linear-gradient(to bottom, transparent, var(--bg) 55%); pointer-events: none; }
.pf-actions .act { pointer-events: auto; }
.chat-side .pf { min-height: 0; background: var(--panel); }
.chat-side .pf-photos { height: 480px; }
.chat-side .pf-body { padding-bottom: 30px; }

/* ---------- match */
.match { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; overflow: hidden; background: #000; }
.m-bg { position: absolute; inset: -60px; background: center / cover no-repeat; filter: blur(34px) brightness(.38) saturate(1.3); transform: scale(1.1); transition: transform 1.2s ease; }
.match.in .m-bg { transform: scale(1); }
.m-in { position: relative; z-index: 1; width: min(100%, 430px); padding: 24px 26px max(24px, env(safe-area-inset-bottom)); text-align: center; }
.m-title { margin: 0; font: 400 clamp(48px, 14vw, 72px)/1.2 "Pacifico", "Brush Script MT", cursive; color: #fff; transform: rotate(-7deg); text-shadow: 0 6px 34px rgba(31, 216, 149, .55);
  opacity: 0; }
.match.in .m-title { animation: stampIn .55s .1s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes stampIn { from { transform: rotate(-7deg) scale(1.9); opacity: 0; } to { transform: rotate(-7deg) scale(1); opacity: 1; } }
.m-sub { margin: 16px 0 30px; font-size: 16px; color: #e2e2e8; opacity: 0; }
.match.in .m-sub { animation: fadeUp .4s .45s ease both; }
@keyframes fadeUp { from { transform: translateY(10px); opacity: 0; } to { opacity: 1; } }
.m-pics { display: flex; justify-content: center; margin-bottom: 40px; }
.m-pics > * { width: 136px; height: 136px; border-radius: 50%; border: 4px solid #fff; object-fit: cover; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.m-you { transform: translateX(12px) rotate(-6deg); }
.m-them { transform: translateX(-12px) rotate(6deg); }
.match.in .m-you { animation: inL .6s .15s cubic-bezier(.2, 1.2, .4, 1) both; }
.match.in .m-them { animation: inR .6s .15s cubic-bezier(.2, 1.2, .4, 1) both; }
@keyframes inL { from { transform: translateX(-60vw) rotate(-40deg); } }
@keyframes inR { from { transform: translateX(60vw) rotate(40deg); } }
.hearts { position: absolute; left: 50%; top: 46%; width: 0; height: 0; pointer-events: none; }
.hearts i { position: absolute; width: 22px; height: 22px; margin: -11px; background: currentColor; color: var(--like); animation: burst 1.3s cubic-bezier(.15, .8, .3, 1) forwards;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21.2 10.6 20C5.4 15.3 2 12.2 2 8.4 2 5.3 4.4 3 7.4 3c1.7 0 3.4.8 4.6 2.1C13.2 3.8 14.9 3 16.6 3 19.6 3 22 5.3 22 8.4c0 3.8-3.4 6.9-8.6 11.6z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21.2 10.6 20C5.4 15.3 2 12.2 2 8.4 2 5.3 4.4 3 7.4 3c1.7 0 3.4.8 4.6 2.1C13.2 3.8 14.9 3 16.6 3 19.6 3 22 5.3 22 8.4c0 3.8-3.4 6.9-8.6 11.6z'/%3E%3C/svg%3E") center / contain no-repeat; }
@keyframes burst { 0% { transform: translate(0, 0) scale(.2); opacity: 1; } 100% { transform: translate(var(--x), var(--y)) scale(var(--s)) rotate(var(--r)); opacity: 0; } }
.m-btn { display: block; width: 100%; height: 54px; margin-top: 12px; border-radius: 27px; font-size: 16px; font-weight: 700; letter-spacing: .01em; opacity: 0; }
.match.in .m-btn { animation: fadeUp .4s .55s ease both; }
.m-btn.send { border: 0; background: var(--accent); color: #fff; }
.m-btn.keep { border: 2px solid rgba(255, 255, 255, .7); background: transparent; color: #fff; }

/* ---------- desktop: the web app layout, the deck in the middle */
@media (min-width: 900px) {
  .app { grid-template-columns: 340px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
  .side { display: flex; flex-direction: column; min-height: 0; background: var(--panel); border-right: 1px solid var(--line); position: relative; z-index: 2; }
  .tabs { display: none; }
  #v-likes, #v-chats { display: none !important; }
  #v-deck { display: flex !important; padding: 26px 24px 4px; }
  .side-tabs { display: flex; gap: 24px; padding: 20px 20px 0; border-bottom: 1px solid var(--line); }
  .side-tab { position: relative; padding: 8px 0 12px; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--muted); font-size: 16px; font-weight: 800; }
  .side-tab.on { color: var(--text); border-bottom-color: var(--accent); }
  .side-tab .dot { top: 6px; right: -11px; }
  .side-pane { display: none; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
  .side-pane.on { display: block; }
  .side .likes-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 14px 14px 24px; }
  .side .tile img { --blur: 4.5px; }
  .side .tile.clear img { --blur: 0px; }
  .side .tile .t-name { font-size: 13px; left: 7px; right: 7px; bottom: 6px; }
  .side .chats { padding-top: 4px; }
  .chat { position: absolute; inset: 0; z-index: 10; }
  .chat-head { padding: 12px 16px; }
  .chat-head .back { margin-left: -6px; }
  .chat-scroll { padding: 8px 28px 18px; }
  .composer { padding: 12px 24px 14px; }
  .profile { background: rgba(0, 0, 0, .72); display: grid; place-items: center; padding: 3vh 0; backdrop-filter: blur(4px); }
  .profile .pf { width: min(480px, 92vw); height: 94vh; min-height: 0; border-radius: 16px; overflow-y: auto; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
  .profile .pf-photos { height: min(560px, 60vh); }
  .profile .pf-actions { position: sticky; }
  .act { width: 72px; height: 72px; }
  .act svg { width: 34px; height: 34px; }
  .act.rewind { width: 54px; height: 54px; }
}
@media (min-width: 1180px) {
  .chat-side { display: block; }
  .chat-side .pf-close { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
