/* Pasifogó phone UI + visual-novel player (agent ui). Everything is scoped under .pf-* classes. */

@font-face {
  font-family: 'Nunito';
  src: url('../fonts/Nunito.ttf') format('truetype');
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

.pf-root {
  --pf-bg: #0d0717;
  --pf-bg2: #160c26;
  --pf-surface: #1d1230;
  --pf-surface2: #2a1b42;
  --pf-line: rgba(255, 255, 255, .09);
  --pf-text: #fff;
  --pf-muted: #b7a6d3;
  --pf-pink: #ff4f8f;
  --pf-magenta: #e040fb;
  --pf-purple: #7c4dff;
  --pf-green: #34e39a;
  --pf-red: #ff4d6d;
  --pf-grad: linear-gradient(135deg, #ff6a9a 0%, #e040fb 52%, #7c4dff 100%);
  --pf-grad-soft: linear-gradient(135deg, rgba(255, 106, 154, .22), rgba(124, 77, 255, .22));
  --pf-r-xl: 26px;
  --pf-r-lg: 20px;
  --pf-r-md: 14px;
  --pf-shadow: 0 18px 40px -12px rgba(0, 0, 0, .65);
  --pf-sat: env(safe-area-inset-top, 0px);
  --pf-sab: env(safe-area-inset-bottom, 0px);
  --pf-sal: env(safe-area-inset-left, 0px);
  --pf-sar: env(safe-area-inset-right, 0px);
  font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--pf-text);
  -webkit-tap-highlight-color: transparent;
}
.pf-root *, .pf-root *::before, .pf-root *::after { box-sizing: border-box; }
.pf-root button { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.pf-root kbd {
  font: 800 12px/1 'Nunito', sans-serif; display: inline-grid; place-items: center; min-width: 22px; height: 22px;
  padding: 0 5px; border-radius: 7px; background: rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .85);
}
@media (hover: none), (pointer: coarse) { .pf-root kbd { display: none !important; } }
.pf-root button:focus-visible, .pf-root [tabindex]:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* ------------------------------------------------------------------ buttons */
.pf-btn {
  appearance: none; border: 0; cursor: pointer; min-height: 52px; padding: 0 24px; border-radius: 999px;
  font-size: 17px; font-weight: 900; letter-spacing: .01em; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .15s cubic-bezier(.3, 1.6, .5, 1), filter .15s, background .2s, opacity .2s;
  user-select: none;
}
.pf-root .pf-btn { font-weight: 800; } /* `.pf-root button { font: inherit }` would otherwise reset it to regular */
.pf-btn:active, .pf-btn.is-press { transform: scale(.95); }
.pf-btn kbd { background: rgba(255, 255, 255, .22); }
.pf-btn-grad { background: var(--pf-grad); color: #fff; box-shadow: 0 10px 26px -8px rgba(224, 64, 251, .75), inset 0 1px 0 rgba(255, 255, 255, .3); }
.pf-btn-grad:hover { filter: brightness(1.08); }
.pf-btn-ghost { background: rgba(255, 255, 255, .08); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .16); }
.pf-btn-ghost:hover { background: rgba(255, 255, 255, .13); }
.pf-btn-danger { background: rgba(255, 77, 109, .12); color: #ff8aa0; box-shadow: inset 0 0 0 1.5px rgba(255, 77, 109, .4); }
.pf-btn-danger:hover { background: rgba(255, 77, 109, .2); }
.pf-btn.is-chosen { transform: scale(1.05); filter: brightness(1.15); }

.pf-pill {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px var(--pf-line);
  font-size: 14px; font-weight: 800; color: var(--pf-muted); white-space: nowrap;
}

/* ------------------------------------------------------------------ phone screen shell */
.pf-phone {
  position: absolute; inset: 0; z-index: 10; overflow: hidden;
  display: flex; flex-direction: column;
  padding: var(--pf-sat) var(--pf-sar) 0 var(--pf-sal);
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(224, 64, 251, .28), transparent 60%),
    radial-gradient(90% 50% at 100% 110%, rgba(124, 77, 255, .25), transparent 60%),
    linear-gradient(180deg, var(--pf-bg2), var(--pf-bg));
  animation: pf-screen-in .32s cubic-bezier(.2, .9, .3, 1) both;
  user-select: none; -webkit-user-select: none;
}
.pf-phone.is-leaving { animation: pf-screen-out .25s ease-in both; pointer-events: none; z-index: 9; }
@keyframes pf-screen-in { from { opacity: 0; transform: translateY(18px) scale(.985); } }
@keyframes pf-screen-out { to { opacity: 0; transform: scale(.98); } }

.pf-appbar {
  flex: none; height: 60px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px;
}
.pf-logo { display: flex; align-items: center; gap: 7px; }
.pf-logo-mark { width: 32px; height: 32px; filter: drop-shadow(0 4px 10px rgba(224, 64, 251, .45)); }
.pf-wordmark {
  font-size: 26px; font-weight: 1000; letter-spacing: -.035em; line-height: 1;
  background: var(--pf-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: 2px;
}

/* ------------------------------------------------------------------ swipe deck */
.pf-deck {
  --p: 0;
  position: relative; flex: 1 1 auto; min-height: 0; margin: 4px 12px 0;
}
.pf-card {
  position: absolute; inset: 0 0 18px; border-radius: var(--pf-r-xl); overflow: hidden;
  background: var(--pf-surface2); box-shadow: var(--pf-shadow), 0 0 0 1px rgba(255, 255, 255, .06);
  touch-action: none; cursor: grab; will-change: transform;
  transition: transform .5s cubic-bezier(.2, 1.35, .4, 1);
  transform-origin: 50% 85%;
}
.pf-card.is-drag { transition: none; cursor: grabbing; }
.pf-card.is-fling { transition-property: transform; transition-timing-function: cubic-bezier(.25, .7, .4, 1); pointer-events: none; }
.pf-card[data-depth="1"] { transform: translateY(calc(14px * (1 - var(--p)))) scale(calc(.94 + .06 * var(--p))); transition: transform .22s ease-out; pointer-events: none; }
.pf-card[data-depth="2"] { transform: translateY(calc(28px - 14px * var(--p))) scale(calc(.88 + .06 * var(--p))); transition: transform .22s ease-out; pointer-events: none; }
.pf-card[data-depth="1"] .pf-card-info, .pf-card[data-depth="2"] .pf-card-info { opacity: .0; }
.pf-card[data-depth="2"] { filter: brightness(.7); }
.pf-deck.no-trans .pf-card { transition: none !important; }
.pf-card-photo { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pf-card-shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, .18) 0%, transparent 18%, transparent 45%, rgba(10, 4, 20, .55) 66%, rgba(10, 4, 20, .94) 100%);
  transition: background .35s;
}
.pf-card.is-open .pf-card-shade { background: linear-gradient(180deg, rgba(0, 0, 0, .12) 0%, rgba(10, 4, 20, .22) 26%, rgba(10, 4, 20, .82) 56%, rgba(10, 4, 20, .97) 100%); }

.pf-stamp {
  position: absolute; top: 34px; padding: 4px 14px; border-radius: 12px; border: 5px solid currentColor;
  font-size: 40px; font-weight: 1000; letter-spacing: .06em; line-height: 1.05; opacity: 0; pointer-events: none;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .35); box-shadow: 0 0 22px -4px currentColor, inset 0 0 18px -6px currentColor;
}
.pf-stamp-like { left: 22px; color: var(--pf-green); transform: rotate(-16deg); }
.pf-stamp-nope { right: 22px; color: var(--pf-red); transform: rotate(16deg); }

.pf-card-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 20px 20px; transition: opacity .2s; }
.pf-card-active {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 6px; padding: 3px 10px 3px 8px; border-radius: 999px;
  background: rgba(52, 227, 154, .16); color: #8ff3c6; font-size: 13px; font-weight: 800;
}
.pf-card-active i { width: 8px; height: 8px; border-radius: 50%; background: var(--pf-green); box-shadow: 0 0 8px var(--pf-green); }
.pf-card-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.pf-card-name { margin: 0; font-size: 34px; font-weight: 1000; letter-spacing: -.02em; line-height: 1.05; text-shadow: 0 2px 14px rgba(0, 0, 0, .5); }
.pf-card-age { font-weight: 500; margin-left: 10px; opacity: .95; }
.pf-card-i {
  flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 4px;
  background: rgba(255, 255, 255, .92); color: #20123a; transition: transform .3s;
}
.pf-card-i svg { width: 20px; height: 20px; display: block; }
.pf-card.is-open .pf-card-i { transform: rotate(180deg); }
.pf-card-km { margin-top: 4px; font-size: 16px; font-weight: 700; color: rgba(255, 255, 255, .85); }
.pf-card-fresh { margin-left: 10px; padding: 1px 8px; border-radius: 99px; font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .72); background: rgba(255, 255, 255, .1); white-space: nowrap; vertical-align: 1px; }
.pf-bigcard[data-arch="normalis"] .pf-bigcard-title { color: #7ee2a8; }
.pf-card-bio {
  margin: 8px 0 12px; font-size: 17px; line-height: 1.35; font-weight: 600; color: rgba(255, 255, 255, .95);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pf-card.is-open .pf-card-bio { -webkit-line-clamp: 12; }
.pf-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.pf-tag {
  font-size: 14px; font-weight: 800; padding: 6px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, .14); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
}

.pf-actions {
  flex: none; display: flex; justify-content: center; align-items: center; gap: 34px; padding: 6px 0 4px;
}
.pf-act {
  appearance: none; border: 0; cursor: pointer; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center;
  background: #1f1433; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .7), inset 0 0 0 2px rgba(255, 255, 255, .07);
  font-size: 32px; font-weight: 1000; line-height: 1;
  transition: transform .18s cubic-bezier(.3, 1.8, .5, 1), box-shadow .2s, background .2s;
}
.pf-act svg { width: 30px; height: 30px; display: block; }
.pf-act-like svg { width: 36px; height: 36px; margin-top: 2px; }
.pf-act-nope { color: var(--pf-red); }
.pf-act-like { color: #fff; background: var(--pf-grad); box-shadow: 0 12px 28px -8px rgba(224, 64, 251, .8), inset 0 1px 0 rgba(255, 255, 255, .35); font-size: 36px; }
.pf-act:hover { transform: scale(1.06); }
.pf-act:active, .pf-act.is-press { transform: scale(.86); }
.pf-act:disabled { opacity: .35; cursor: default; transform: none; }
.pf-keyhint {
  flex: none; text-align: center; font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .42);
  padding: 2px 0 calc(10px + var(--pf-sab)); display: flex; justify-content: center; align-items: center; gap: 6px;
}
.pf-keyhint span { opacity: .5; }
@media (hover: none), (pointer: coarse) { .pf-keyhint { font-size: 0; padding-top: 0; } }

.pf-empty {
  position: absolute; inset: 0 0 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  text-align: center; border-radius: var(--pf-r-xl); border: 2px dashed rgba(255, 255, 255, .12); color: var(--pf-muted);
  font-size: 16px; animation: pf-pop .45s cubic-bezier(.2, 1.4, .4, 1) both;
}
.pf-empty b { color: #fff; font-size: 20px; font-weight: 900; }
.pf-empty-emoji { font-size: 54px; margin-bottom: 4px; }
.pf-empty-inline { position: static; padding: 30px 16px; }
@keyframes pf-pop { from { opacity: 0; transform: scale(.8); } }

/* ------------------------------------------------------------------ match overlay */
.pf-match {
  position: absolute; inset: 0; z-index: 40; display: grid; place-items: center; overflow: hidden;
  padding: calc(20px + var(--pf-sat)) 20px calc(20px + var(--pf-sab));
  background: radial-gradient(90% 60% at 50% 40%, rgba(224, 64, 251, .55), rgba(40, 10, 70, .92) 70%), rgba(13, 7, 23, .9);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; transition: opacity .3s;
}
.pf-match.is-in { opacity: 1; }
.pf-match.is-out { opacity: 0; }
.pf-match-hearts { position: absolute; inset: 0; pointer-events: none; }
.pf-match-hearts span { position: absolute; bottom: -40px; animation: pf-float linear infinite; opacity: 0; }
@keyframes pf-float {
  0% { transform: translateY(0) rotate(-10deg); opacity: 0; }
  10% { opacity: .9; }
  100% { transform: translateY(-115vh) rotate(25deg); opacity: 0; }
}
.pf-match-inner { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; width: 100%; }
.pf-match-title {
  margin: 0; font-size: 64px; font-weight: 1000; font-style: italic; letter-spacing: -.04em; line-height: 1;
  color: #fff; text-shadow: 0 0 30px rgba(255, 106, 154, .9), 0 4px 0 #b02bd6;
  transform: scale(.4) rotate(-8deg); opacity: 0; transition: transform .6s cubic-bezier(.2, 1.7, .4, 1) .05s, opacity .3s .05s;
}
.pf-match-title span { font-style: normal; }
.pf-match.is-in .pf-match-title { transform: scale(1) rotate(-4deg); opacity: 1; }
.pf-match-sub { margin: 14px 0 26px; font-size: 18px; font-weight: 700; color: rgba(255, 255, 255, .9); opacity: 0; transition: opacity .4s .3s; }
.pf-match.is-in .pf-match-sub { opacity: 1; }
.pf-match-pics { position: relative; display: flex; align-items: center; justify-content: center; margin-bottom: 34px; }
.pf-mp {
  width: 140px; height: 140px; border-radius: 50%; display: block;
  border: 5px solid #fff; box-shadow: 0 14px 40px -10px rgba(0, 0, 0, .7), 0 0 0 3px rgba(224, 64, 251, .5);
  transition: transform .65s cubic-bezier(.2, 1.5, .4, 1) .15s;
}
.pf-mp-a { transform: translateX(-120%) rotate(-30deg); margin-right: -14px; }
.pf-mp-b { transform: translateX(120%) rotate(30deg); margin-left: -14px; }
.pf-match.is-in .pf-mp-a { transform: translateX(0) rotate(-8deg); }
.pf-match.is-in .pf-mp-b { transform: translateX(0) rotate(8deg); }
.pf-match-heart {
  position: absolute; left: 50%; bottom: -10px; font-size: 44px; transform: translateX(-50%) scale(0); z-index: 2;
  transition: transform .5s cubic-bezier(.2, 2, .4, 1) .55s; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .4));
}
.pf-match.is-in .pf-match-heart { transform: translateX(-50%) scale(1); animation: pf-beat 1.1s ease-in-out 1.2s infinite; }
@keyframes pf-beat { 0%, 100% { transform: translateX(-50%) scale(1); } 15% { transform: translateX(-50%) scale(1.18); } 30% { transform: translateX(-50%) scale(1); } 45% { transform: translateX(-50%) scale(1.12); } }
.pf-match .pf-btn { min-width: 240px; opacity: 0; transform: translateY(14px); transition: opacity .3s .5s, transform .4s cubic-bezier(.2, 1.4, .4, 1) .5s; }
.pf-match.is-in .pf-btn { opacity: 1; transform: none; }
.pf-match.is-in .pf-btn:active { transform: scale(.95); transition-delay: 0s; }

/* ------------------------------------------------------------------ inner-voice toasts */
.pf-toasts {
  position: absolute; left: 0; right: 0; top: calc(66px + var(--pf-sat)); z-index: 50; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; padding: 0 16px;
}
.pf-toast {
  pointer-events: auto; display: flex; align-items: center; gap: 10px; max-width: 420px; width: 100%;
  padding: 10px 16px 10px 10px; border-radius: 22px 22px 22px 8px;
  background: rgba(255, 255, 255, .96); color: #23123d; box-shadow: 0 16px 34px -10px rgba(0, 0, 0, .6);
  transform: translateY(-20px) scale(.9); opacity: 0; transition: transform .4s cubic-bezier(.2, 1.5, .4, 1), opacity .25s;
}
.pf-toast.is-in { transform: none; opacity: 1; }
/* on the matches list the header row sits right under the app bar: show thoughts above the bottom button instead */
:has(> .pf-matches) > .pf-toasts { top: auto; bottom: calc(92px + var(--pf-sab)); }
.pf-toast.is-out { transform: translateY(-14px) scale(.96); opacity: 0; transition-duration: .25s; }
.pf-toast-ava { flex: none; width: 46px; height: 46px; border-radius: 50%; display: block; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--pf-pink); }
.pf-toast-body small { display: block; font-size: 12px; font-weight: 900; color: #b02bd6; text-transform: uppercase; letter-spacing: .06em; }
.pf-toast-body p { margin: 1px 0 0; font-size: 16px; font-weight: 700; font-style: italic; line-height: 1.3; }

/* ------------------------------------------------------------------ notifications */
.pf-notifs {
  position: absolute; left: 0; right: 0; top: 0; z-index: 60; pointer-events: none;
  padding: calc(10px + var(--pf-sat)) 10px 0;
}
.pf-notif {
  pointer-events: auto; position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px 16px;
  border-radius: 24px; cursor: pointer; touch-action: none;
  background: rgba(245, 240, 252, .82); color: #140a22;
  backdrop-filter: blur(22px) saturate(1.6); -webkit-backdrop-filter: blur(22px) saturate(1.6);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .65), inset 0 0 0 1px rgba(255, 255, 255, .5);
  transform: translate3d(0, -140%, 0); transition: transform .55s cubic-bezier(.2, 1.25, .4, 1);
}
.pf-notif.is-in { transform: translate3d(0, 0, 0); }
.pf-notif.is-drag { transition: none; }
.pf-notif.is-out { transform: translate3d(0, -150%, 0) !important; transition: transform .3s cubic-bezier(.5, 0, .8, .4); }
.pf-notif:active:not(.is-drag) { filter: brightness(.96); }
.pf-ni { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 24px; }
.pf-ni-insta { border-radius: 50%; padding: 3px; background: conic-gradient(from 210deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5, #feda75); }
.pf-ni-insta span {
  width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; border: 2.5px solid #f5f0fc;
  background: linear-gradient(135deg, #3b3b55, #15151f); color: #fff; font-weight: 1000; font-size: 18px;
}
.pf-ni-friends { border-radius: 50%; background: linear-gradient(135deg, #ff9ac1, #ff4f8f); box-shadow: 0 4px 10px -3px rgba(255, 79, 143, .7); }
.pf-ni-anya { background: linear-gradient(180deg, #5ef08a, #22c35a); font-size: 22px; }
.pf-ni-pasifogo { background: #1a0f2c; }
.pf-ni-pasifogo .pf-logo-mark { width: 30px; height: 30px; filter: none; }
.pf-notif-body { min-width: 0; flex: 1; }
.pf-notif-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.pf-notif-app { font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .07em; color: rgba(20, 10, 34, .55); }
.pf-notif-time { font-size: 13px; font-weight: 700; color: rgba(20, 10, 34, .5); }
.pf-notif-from { display: block; font-size: 16px; font-weight: 900; line-height: 1.25; margin-top: 1px; }
.pf-notif-text { margin: 1px 0 0; font-size: 16px; font-weight: 600; line-height: 1.3; color: rgba(20, 10, 34, .85); overflow-wrap: anywhere; }
.pf-notif-story {
  flex: none; width: 44px; height: 64px; border-radius: 10px; display: grid; place-items: center; font-size: 20px;
  background: linear-gradient(160deg, #fa7e1e, #d62976 50%, #4f5bd5); box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .5);
}
.pf-notif-grab { position: absolute; left: 50%; bottom: 6px; width: 38px; height: 4px; margin-left: -19px; border-radius: 4px; background: rgba(20, 10, 34, .2); }
.pf-notif-more {
  position: absolute; top: -6px; right: 10px; padding: 2px 8px; border-radius: 999px; background: var(--pf-pink); color: #fff;
  font-size: 12px; font-weight: 900; box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .5);
  transform: scale(0); transition: transform .3s cubic-bezier(.2, 1.8, .4, 1);
}
.pf-notif-more.is-on { transform: scale(1); }
.pf-notif-hint {
  text-align: center; margin-top: 8px; font-size: 13px; font-weight: 800; color: rgba(255, 255, 255, .6); letter-spacing: .04em;
  opacity: 0; transition: opacity .4s 1.2s; text-shadow: 0 1px 4px rgba(0, 0, 0, .6);
}
.pf-notif-hint.is-in { opacity: 1; }

/* ------------------------------------------------------------------ matches list */
.pf-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 16px 16px; -webkit-overflow-scrolling: touch; }
.pf-h2 { margin: 6px 0 12px; font-size: 28px; font-weight: 1000; letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; }
.pf-h2-n { font-size: 15px; font-weight: 900; padding: 2px 10px; border-radius: 999px; background: var(--pf-grad); }
.pf-h3 { margin: 18px 0 8px; font-size: 14px; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; color: var(--pf-muted); }
.pf-newrow { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 6px; scrollbar-width: none; }
.pf-newrow::-webkit-scrollbar { display: none; }
.pf-newmatch { appearance: none; border: 0; background: none; padding: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; flex: none; width: 76px; }
.pf-newmatch:disabled { cursor: default; opacity: .5; }
.pf-newmatch-ring { width: 76px; height: 76px; border-radius: 50%; padding: 3px; background: var(--pf-grad); display: block; transition: transform .2s; }
.pf-newmatch:not(:disabled):active .pf-newmatch-ring { transform: scale(.92); }
.pf-newmatch-ring .pf-ava { width: 100%; height: 100%; border: 3px solid var(--pf-bg2); }
.pf-newmatch-name { font-size: 14px; font-weight: 800; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-ava { display: block; border-radius: 50%; background: var(--pf-surface2); }
.pf-list { display: flex; flex-direction: column; gap: 8px; }
.pf-row {
  appearance: none; border: 0; width: 100%; text-align: left; cursor: pointer; display: flex; align-items: center; gap: 14px;
  padding: 10px 12px; border-radius: var(--pf-r-lg); background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--pf-line);
  transition: background .2s, transform .15s cubic-bezier(.3, 1.6, .5, 1);
  animation: pf-rise .4s cubic-bezier(.2, 1.2, .4, 1) both;
}
@keyframes pf-rise { from { opacity: 0; transform: translateY(14px); } }
.pf-row:hover:not(:disabled) { background: rgba(255, 255, 255, .09); }
.pf-row:active:not(:disabled), .pf-row.is-press { transform: scale(.97); }
.pf-row:disabled { cursor: default; opacity: .55; }
.pf-row-ava { position: relative; flex: none; }
.pf-row-ava .pf-ava { width: 60px; height: 60px; }
.pf-row-dot { position: absolute; right: 1px; bottom: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--pf-green); border: 3px solid #1a1029; }
.pf-row-main { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.pf-row-title { display: flex; align-items: center; gap: 6px; font-size: 18px; }
.pf-row-title b { font-weight: 900; }
.pf-row-age { color: var(--pf-muted); font-weight: 700; }
.pf-badge { font-size: 11px; font-weight: 1000; letter-spacing: .06em; padding: 2px 7px; border-radius: 6px; background: var(--pf-pink); color: #fff; }
.pf-badge-mini { padding: 2px 5px; letter-spacing: 0; background: rgba(255, 79, 163, .28); box-shadow: inset 0 0 0 1px rgba(255, 79, 163, .6); }
.pf-row-sub { font-size: 15px; font-weight: 600; color: var(--pf-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-row-key { flex: none; }
.pf-bottom { flex: none; padding: 10px 16px calc(14px + var(--pf-sab)); display: flex; justify-content: center; }
.pf-bottom .pf-btn { width: 100%; }

/* ------------------------------------------------------------------ chat */
.pf-chathead {
  flex: none; display: flex; align-items: center; gap: 10px; padding: 10px 14px; min-height: 64px;
  background: rgba(20, 12, 34, .7); border-bottom: 1px solid var(--pf-line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.pf-chathead-back {
  flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; margin: 0 -2px 0 -4px;
  font-size: 34px; font-weight: 800; line-height: 1; padding-bottom: 4px; box-sizing: border-box;
  color: #fff; background: rgba(255, 106, 154, .22); box-shadow: inset 0 0 0 1.5px rgba(255, 106, 154, .55);
}
.pf-ava-head { width: 44px; height: 44px; flex: none; box-shadow: 0 0 0 2px var(--pf-pink); }
.pf-chathead-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pf-chathead-main b { font-size: 18px; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-chathead-main span { font-size: 13px; font-weight: 700; color: var(--pf-muted); display: flex; align-items: center; gap: 6px; }
.pf-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pf-green); box-shadow: 0 0 6px var(--pf-green); }
.pf-chathead-logo .pf-logo-mark { width: 28px; height: 28px; }
.pf-msgs {
  flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 14px 14px 18px;
  display: flex; flex-direction: column; gap: 3px;
}
.pf-msgs > :first-child { margin-top: auto; }
.pf-sys { align-self: center; display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 6px 0 14px; text-align: center; font-size: 15px; font-weight: 800; color: rgba(255, 255, 255, .85); }
.pf-sys small { font-size: 12px; font-weight: 700; color: var(--pf-muted); }
.pf-sys-pair { display: flex; margin-bottom: 4px; }
.pf-sys-pair .pf-ava { width: 54px; height: 54px; border: 3px solid var(--pf-bg2); }
.pf-sys-pair .pf-ava + .pf-ava { margin-left: -14px; }
.pf-sys-un { margin-top: 14px; color: #ff8aa0; animation: pf-pop .35s both; }
.pf-bub {
  max-width: 78%; padding: 10px 15px; font-size: 16px; font-weight: 600; line-height: 1.35; border-radius: 22px;
  overflow-wrap: anywhere; animation: pf-bub-in .32s cubic-bezier(.2, 1.4, .4, 1) both; user-select: text; -webkit-user-select: text;
}
@keyframes pf-bub-in { from { opacity: 0; transform: translateY(10px) scale(.92); } }
.pf-bub-him { align-self: flex-start; background: var(--pf-surface2); border-bottom-left-radius: 6px; transform-origin: 0 100%; }
.pf-bub-me { align-self: flex-end; background: var(--pf-grad); border-bottom-right-radius: 6px; transform-origin: 100% 100%; box-shadow: 0 6px 16px -8px rgba(224, 64, 251, .7); }
.pf-bub-him + .pf-bub-me, .pf-bub-me + .pf-bub-him { margin-top: 10px; }
.pf-bub-photo { padding: 6px; width: min(78%, 260px); }
.pf-photo-tile {
  position: relative; height: 150px; border-radius: 17px; overflow: hidden; display: grid; place-items: center;
  background:
    radial-gradient(60% 50% at 30% 30%, rgba(255, 190, 120, .75), transparent 70%),
    radial-gradient(55% 60% at 75% 70%, rgba(124, 77, 255, .8), transparent 70%),
    radial-gradient(40% 40% at 60% 35%, rgba(255, 106, 154, .7), transparent 70%),
    linear-gradient(135deg, #4b2a6e, #1d1230);
  filter: saturate(1.1);
}
.pf-photo-tile::after { content: ''; position: absolute; inset: 0; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); background: rgba(255, 255, 255, .04); }
.pf-photo-tile span { position: relative; z-index: 1; font-size: 30px; opacity: .85; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .4)); }
.pf-photo-desc { margin: 7px 8px 3px; font-size: 15px; font-style: italic; font-weight: 600; line-height: 1.35; color: rgba(255, 255, 255, .78); }
.pf-typing { display: flex; gap: 5px; padding: 14px 16px; }
.pf-typing i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .6); animation: pf-dots 1.1s ease-in-out infinite; }
.pf-typing i:nth-child(2) { animation-delay: .15s; }
.pf-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes pf-dots { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-6px); opacity: 1; } }

.pf-tray {
  flex: none; max-height: 46%; display: flex; flex-direction: column;
  padding: 12px 12px calc(12px + var(--pf-sab)); border-radius: 24px 24px 0 0;
  background: #170e28; box-shadow: 0 -10px 30px -10px rgba(0, 0, 0, .6), inset 0 1px 0 var(--pf-line);
  transition: transform .35s cubic-bezier(.3, 1.2, .4, 1), opacity .3s;
}
.pf-tray.is-hide { transform: translateY(100%); opacity: 0; }
.pf-tray-head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 6px 10px; }
.pf-tray-head b { font-size: 17px; font-weight: 900; background: var(--pf-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pf-tray-left { font-size: 14px; font-weight: 800; color: var(--pf-muted); }
.pf-qs {
  overflow-y: auto; overscroll-behavior: contain; display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 2px 36px; /* room under the last question for the "még" pill */
  -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 26px), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 26px), transparent);
}
.pf-q {
  appearance: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; text-align: left;
  min-height: 44px; padding: 8px 14px 8px 10px; border-radius: 16px; font-size: 16px; font-weight: 700; line-height: 1.25;
  background: var(--pf-grad-soft); box-shadow: inset 0 0 0 1.5px rgba(224, 64, 251, .35);
  transition: transform .15s cubic-bezier(.3, 1.6, .5, 1), opacity .25s, background .2s, max-width .26s;
  animation: pf-pop .3s both;
}
.pf-q kbd { flex: none; }
.pf-q:hover { background: linear-gradient(135deg, rgba(255, 106, 154, .34), rgba(124, 77, 255, .34)); }
.pf-q:active { transform: scale(.95); }
.pf-q.is-used { background: var(--pf-grad); }
.pf-q.is-gone { transform: scale(.6) translateY(-20px); opacity: 0; }
.pf-tray.is-wait .pf-q:not(.is-used) { opacity: .72; filter: saturate(.7); pointer-events: none; }
.pf-tray { position: relative; }
.pf-tray::after {
  content: '▾ még'; position: absolute; right: 14px; bottom: calc(6px + var(--pf-sab)); transform: translateY(6px); opacity: 0;
  padding: 3px 12px; border-radius: 999px; font-size: 12px; font-weight: 900; color: #fff; background: #6a45e0;
  box-shadow: 0 0 0 4px #170e28, 0 4px 12px -4px rgba(0, 0, 0, .6); pointer-events: none; transition: opacity .2s, transform .2s;
}
.pf-tray.has-more::after { opacity: 1; transform: none; }

.pf-decide {
  flex: none; padding: 16px 16px calc(16px + var(--pf-sab)); border-radius: 24px 24px 0 0; background: #170e28;
  box-shadow: 0 -10px 30px -10px rgba(0, 0, 0, .6), inset 0 1px 0 var(--pf-line);
  transform: translateY(100%); transition: transform .45s cubic-bezier(.2, 1.3, .4, 1);
}
.pf-decide.is-in { transform: none; }
.pf-decide-q { text-align: center; font-size: 18px; font-weight: 900; margin-bottom: 12px; }
.pf-decide-btns { display: flex; gap: 10px; }
.pf-decide-btns .pf-btn { flex: 1; padding: 0 12px; }
.pf-decide-btns .pf-btn-grad { flex: 1.3; }

/* ------------------------------------------------------------------ visual novel */
.pf-vn {
  position: absolute; inset: 0; z-index: 20; overflow: hidden; background: #000; cursor: pointer; container-type: size;
  user-select: none; -webkit-user-select: none; touch-action: manipulation;
  animation: pf-fade-in .3s both;
}
.pf-vn.is-out { animation: pf-fade-out .38s both; pointer-events: none; }
@keyframes pf-fade-in { from { opacity: 0; } }
@keyframes pf-fade-out { to { opacity: 0; } }
.pf-vn-bg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pf-vn-vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 80% at 50% 35%, transparent 55%, rgba(0, 0, 0, .45)), linear-gradient(180deg, transparent 60%, rgba(8, 4, 16, .55)); }
.pf-vn-por {
  position: absolute; bottom: calc(120px + var(--pf-sab)); width: min(76cqw, 58cqh); aspect-ratio: 1 / 1.08; display: block; pointer-events: none;
  transform-origin: 50% 100%;
  transition: transform .4s cubic-bezier(.2, 1.2, .4, 1), filter .3s, opacity .3s;
  filter: brightness(.55) saturate(.75); transform: scale(.94); z-index: 1;
}
.pf-vn-left { left: max(-7cqw, calc(30cqw - min(76cqw, 58cqh))); }
.pf-vn-right { right: max(-7cqw, calc(30cqw - min(76cqw, 58cqh))); }
.pf-vn-prop { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; z-index: 4; transition: opacity .35s; }
.pf-vn-prop.is-hidden { opacity: 0; }
.pf-vn-por.is-active { filter: none; transform: scale(1.02); z-index: 2; }
.pf-vn-por { transition: transform .4s cubic-bezier(.2, 1.2, .4, 1), filter .3s, opacity .3s, bottom .35s cubic-bezier(.2, 1, .4, 1); }
/* while choosing, lift the portraits so the panel does not sit on their faces */
.pf-vn.has-choice .pf-vn-por { bottom: max(calc(120px + var(--pf-sab)), calc(var(--pf-choice-h, 0px) - 70px)); }
.pf-vn-por.is-hidden { opacity: 0; }
.pf-vn-left.is-hidden { transform: translateX(-30%) scale(.94); }
.pf-vn-right.is-hidden { transform: translateX(30%) scale(.94); }

.pf-vn-box {
  position: absolute; left: 12px; right: 12px; bottom: calc(14px + var(--pf-sab)); z-index: 5; min-height: 132px;
  display: flex; flex-direction: column;
  padding: 22px 20px 30px; border-radius: var(--pf-r-lg);
  background: linear-gradient(180deg, rgba(30, 16, 52, .9), rgba(16, 8, 30, .94));
  box-shadow: 0 18px 40px -10px rgba(0, 0, 0, .75), inset 0 0 0 1.5px rgba(224, 64, 251, .45), inset 0 1px 0 rgba(255, 255, 255, .12);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: opacity .25s, transform .25s;
}
.pf-vn-box.is-hidden { opacity: 0; transform: translateY(16px); pointer-events: none; }
.pf-vn-box.is-pop { animation: pf-box-pop .28s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes pf-box-pop { from { transform: translateY(6px) scale(.985); } }
.pf-vn-name {
  position: absolute; top: -17px; left: 18px; height: 34px; padding: 0 16px; border-radius: 999px; display: flex; align-items: center;
  font-size: 17px; font-weight: 1000; letter-spacing: .01em; background: var(--pf-grad); box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .6);
}
.pf-vn-name:empty { display: none; }
.pf-vn-name.is-ex { background: linear-gradient(135deg, #5b6b8c, #2f3a52); }
.pf-vn-name.is-him { background: linear-gradient(135deg, #ffb347, #ff6a6a); }
.pf-vn-name.is-anya { background: linear-gradient(135deg, #ff8a8a, #e84a5f); }
.pf-vn-text { margin: 0; font-size: 19px; font-weight: 700; line-height: 1.42; }
.pf-vn-ghost { color: transparent; }
.pf-vn-box.is-narr { background: rgba(8, 4, 16, .82); box-shadow: 0 18px 40px -10px rgba(0, 0, 0, .75), inset 0 0 0 1px rgba(255, 255, 255, .12); }
.pf-vn-box.is-narr { justify-content: center; }
.pf-vn-box.is-narr .pf-vn-text { font-style: italic; font-weight: 600; color: #e9def9; text-align: center; }
.pf-vn-box.is-narr .pf-vn-name { background: rgba(255, 255, 255, .15); }
.pf-vn-next {
  position: absolute; right: 18px; bottom: 9px; font-size: 14px; color: var(--pf-pink); opacity: 0;
  transition: opacity .2s;
}
.pf-vn-box.is-done .pf-vn-next { opacity: 1; animation: pf-nudge .9s ease-in-out infinite; }
@keyframes pf-nudge { 50% { transform: translateY(4px); } }
.pf-vn-choices {
  position: absolute; left: 8px; right: 8px; bottom: calc(10px + var(--pf-sab)); z-index: 6;
  display: flex; flex-direction: column; gap: 10px; pointer-events: none; cursor: default;
  padding: 14px 10px 10px; border-radius: calc(var(--pf-r-lg) + 6px);
}
/* a dark panel behind the header and the options, so neither sits on the portraits' faces */
.pf-vn-choices:not(:empty) {
  background: linear-gradient(180deg, rgba(14, 7, 26, .88), rgba(10, 5, 20, .96));
  box-shadow: 0 -12px 40px -8px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(255, 255, 255, .08);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: pf-fade-in .2s both;
}
.pf-vn-choices.is-in { pointer-events: auto; }
.pf-vn-choices-head { text-align: center; font-size: 14px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: #fff; opacity: .9; animation: pf-rise .3s both; }
.pf-vn-choice {
  appearance: none; border: 0; cursor: pointer; display: flex; align-items: center; gap: 12px; text-align: left; width: 100%;
  min-height: 58px; padding: 12px 18px 12px 14px; border-radius: 18px; font-size: 17px; font-weight: 800; line-height: 1.3;
  background: rgba(24, 12, 42, .92); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .8), inset 0 0 0 1.5px rgba(224, 64, 251, .5);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: transform .15s cubic-bezier(.3, 1.6, .5, 1), background .2s, box-shadow .2s;
  animation: pf-rise .38s cubic-bezier(.2, 1.3, .4, 1) both;
}
.pf-vn-choice:hover { background: rgba(46, 22, 78, .95); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .8), inset 0 0 0 2px var(--pf-magenta); }
.pf-vn-choice:active { transform: scale(.97); }
.pf-vn-choice.is-chosen { background: var(--pf-grad); transform: scale(1.03); }
.pf-vn.has-choice .pf-vn-vignette { background: radial-gradient(120% 80% at 50% 35%, transparent 55%, rgba(0, 0, 0, .45)), linear-gradient(180deg, transparent 35%, rgba(8, 4, 16, .85)); }
.pf-vn-vignette { transition: background .3s; }
.pf-vn-fade { position: absolute; inset: 0; z-index: 9; background: #07030d; opacity: 0; pointer-events: none; transition: opacity .32s ease; }
.pf-vn-fade.is-on { opacity: 1; }

/* ------------------------------------------------------------------ big result card */
.pf-cardov {
  position: absolute; inset: 0; z-index: 70; display: grid; place-items: center;
  padding: calc(20px + var(--pf-sat)) 18px calc(20px + var(--pf-sab));
  background: rgba(8, 4, 16, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .25s;
}
.pf-cardov.is-in { opacity: 1; }
.pf-cardov.is-out { opacity: 0; transition-duration: .3s; }
.pf-bigcard {
  position: relative; width: 100%; max-width: 400px; max-height: 100%; overflow-y: auto; text-align: center;
  padding: 34px 24px 24px; border-radius: 30px;
  background: radial-gradient(120% 70% at 50% 0%, rgba(224, 64, 251, .35), transparent 60%), linear-gradient(180deg, #2a1846, #170d29);
  box-shadow: 0 30px 60px -16px rgba(0, 0, 0, .8), inset 0 0 0 1.5px rgba(255, 255, 255, .1);
  transform: scale(.7) translateY(30px); opacity: 0;
  transition: transform .5s cubic-bezier(.2, 1.5, .4, 1), opacity .25s;
}
.pf-cardov.is-in .pf-bigcard { transform: none; opacity: 1; }
.pf-cardov.is-out .pf-bigcard { transform: scale(.92) translateY(10px); opacity: 0; transition-duration: .25s; }
.pf-bigcard-emoji {
  font-size: 76px; line-height: 1; margin: -6px 0 12px; display: inline-block;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .45));
  transform: scale(0) rotate(-30deg); transition: transform .6s cubic-bezier(.2, 1.8, .4, 1) .15s;
}
.pf-cardov.is-in .pf-bigcard-emoji { transform: none; }
.pf-bigcard-title {
  margin: 0 0 12px; font-size: 30px; font-weight: 1000; letter-spacing: -.02em; line-height: 1.1;
  background: linear-gradient(135deg, #fff 30%, #ffc2dc); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pf-bigcard-body p { margin: 0 0 10px; font-size: 17px; font-weight: 600; line-height: 1.45; color: rgba(255, 255, 255, .88); }
.pf-bigcard-btns { display: flex; gap: 10px; margin-top: 22px; flex-direction: row-reverse; }
.pf-bigcard-btns .pf-btn { flex: 1; padding: 0 14px; }
.pf-bigcard-btns.is-stack { flex-direction: column; }

@media (prefers-reduced-motion: reduce) {
  .pf-root *, .pf-root *::before, .pf-root *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .pf-match-hearts { display: none; }
}
