/* Шрифты лежат у нас (cyrillic + latin, вариативные woff2) — без Google Fonts */
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('fonts/manrope-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('fonts/manrope-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 600 800; font-display: swap;
  src: url('fonts/unbounded-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 600 800; font-display: swap;
  src: url('fonts/unbounded-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #0a0810;
  --bg2: #120f1a;
  --card: rgba(255, 255, 255, .055);
  --card2: rgba(255, 255, 255, .09);
  --line: rgba(255, 255, 255, .09);
  --line2: rgba(255, 255, 255, .16);
  --text: #f7f3ff;
  --muted: #a39bb8;
  --hot: #ff2e63;
  --hot2: #ff7a45;
  --violet: #8b5cf6;
  --green: #2ee59d;
  --gold: #ffc53d;
  --blue: #3fb8ff;
  --grad: linear-gradient(135deg, #ff2e63 0%, #ff4d58 40%, #ff8a3d 100%);
  --grad2: linear-gradient(135deg, #8b5cf6 0%, #ff2e63 100%);
  --grad-border: linear-gradient(135deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, .04) 40%, rgba(255, 46, 99, .35));
  --glass: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03));
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, .9);
  --r: 22px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --tabbar: 72px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); overscroll-behavior: none; }
body { font: 500 15px/1.4 Manrope, system-ui, -apple-system, sans-serif; overflow: hidden; -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; padding: 0; }
img { display: block; }
svg { width: 1em; height: 1em; flex: none; display: block; }
h1, h2, h3 { font-family: Unbounded, Manrope, sans-serif; margin: 0; letter-spacing: -.025em; }

/* Градиентная рамка «стекла»: элемент с классом .gb получает тонкую переливающуюся обводку */
.gb { position: relative; }
.gb::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: var(--grad-border);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }

/* ---------- фон ---------- */
#bg { position: fixed; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
#bg::after { content: ''; position: absolute; inset: 0; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .42; animation: float 20s ease-in-out infinite; }
.o1 { width: 360px; height: 360px; background: #ff2e63; top: -140px; left: -120px; }
.o2 { width: 320px; height: 320px; background: #7c4dff; bottom: -100px; right: -140px; animation-delay: -7s; }
.o3 { width: 240px; height: 240px; background: #ff8a3d; top: 42%; left: 58%; opacity: .18; animation-delay: -13s; }
@keyframes float { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(30px, 40px) scale(1.12); } }

#app { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; }
.boot { flex: 1; display: grid; place-items: center; }
.logo-mark { font-size: 56px; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.12); } }

/* ---------- кнопки ---------- */
.btn { position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 58px; border-radius: 20px; font-weight: 800; font-size: 17px; letter-spacing: -.01em; color: #fff;
  background: var(--grad);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -2px 0 rgba(0, 0, 0, .15), 0 14px 34px -12px rgba(255, 46, 99, .75);
  transition: transform .18s var(--spring), opacity .2s, filter .2s, box-shadow .2s; }
.btn::after { content: ''; position: absolute; inset: 0 0 50% 0; z-index: -1; border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, .22), transparent); }
.btn svg { font-size: 20px; transition: transform .25s var(--spring); }
.btn:hover svg:last-child { transform: translateX(3px); }
.btn:active { transform: scale(.965); }
.btn[disabled] { opacity: .32; filter: grayscale(.7); box-shadow: none; }
.btn.ghost { background: var(--glass); color: var(--text); box-shadow: inset 0 0 0 1px var(--line2); font-weight: 700; backdrop-filter: blur(10px); }
.btn.ghost::after { display: none; }
.btn.small { height: 46px; font-size: 15px; border-radius: 15px; }
.btn.small svg { font-size: 17px; }
.btn.glow { animation: glow 2.4s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 16px 50px -6px rgba(255, 46, 99, .95); } }
/* блик, пробегающий по кнопке */
.btn.shine::before { content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg); animation: shine 3.2s ease-in-out infinite; }
@keyframes shine { 0%, 55% { left: -60%; } 85%, 100% { left: 130%; } }

.icon-btn { width: 42px; height: 42px; border-radius: 15px; display: grid; place-items: center; font-size: 20px; color: var(--text);
  background: var(--glass); box-shadow: inset 0 0 0 1px var(--line2); backdrop-filter: blur(12px); transition: transform .15s var(--spring); }
.icon-btn:active { transform: scale(.9); }

/* ---------- чипы, поля ---------- */
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 10px 15px; border-radius: 999px; font-weight: 650; font-size: 14px;
  background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; transition: all .2s var(--ease); }
.chip.on { color: #fff; background: linear-gradient(135deg, rgba(255, 46, 99, .32), rgba(255, 122, 69, .2));
  box-shadow: inset 0 0 0 1.5px rgba(255, 90, 100, .9), 0 6px 18px -8px rgba(255, 46, 99, .8); }
.chip:active { transform: scale(.94); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip small { color: var(--muted); font-weight: 600; font-size: 12px; background: rgba(255, 255, 255, .07); padding: 1px 7px; border-radius: 8px; }
.chip.on small { color: #fff; background: rgba(255, 255, 255, .18); }

.input { width: 100%; height: 56px; border-radius: 18px; border: 0; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line2);
  padding: 0 18px; font-size: 17px; font-weight: 650; outline: none; transition: box-shadow .2s; }
.input::placeholder { color: rgba(163, 155, 184, .7); font-weight: 500; }
.input:focus { box-shadow: inset 0 0 0 1.5px var(--hot), 0 0 0 5px rgba(255, 46, 99, .14); }
textarea.input { height: 100px; padding: 15px 18px; resize: none; font-weight: 500; font-size: 15px; line-height: 1.45; }
.label { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 800; margin: 24px 0 10px; }
.muted { color: var(--muted); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.scroll-y { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }

/* ---------- бренд ---------- */
.brand { font: 800 22px Unbounded, sans-serif; display: flex; align-items: center; gap: 8px; letter-spacing: -.04em; }
.brand b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-ic { width: 32px; height: 32px; border-radius: 11px; display: grid; place-items: center; background: var(--grad); color: #fff; font-size: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 8px 20px -8px rgba(255, 46, 99, .9); transform: rotate(-6deg); }

/* ---------- лендинг ---------- */
.landing { flex: 1; display: flex; flex-direction: column; padding: 18px 20px calc(18px + var(--safe-b)); overflow: hidden; }
.landing .top { display: flex; align-items: center; justify-content: space-between; }
.badge18 { font-size: 12px; font-weight: 800; padding: 6px 10px; border-radius: 10px; color: #ff6b8f;
  background: rgba(255, 46, 99, .1); box-shadow: inset 0 0 0 1.5px rgba(255, 46, 99, .55); }

.fan { position: relative; flex: 1; min-height: 250px; max-height: 380px; margin: 10px 0 4px; }
.fan .fc { position: absolute; left: 50%; top: 50%; width: 44%; aspect-ratio: 3/4; border-radius: 24px; overflow: hidden;
  background: var(--grad2) center/cover; box-shadow: 0 24px 50px -14px rgba(0, 0, 0, .85), inset 0 0 0 1.5px rgba(255, 255, 255, .16);
  transition: transform .7s var(--ease); }
.fan .fc::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(8, 4, 14, .85)); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .14); border-radius: inherit; }
.fan .fc img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.75); transition: opacity .5s; }
.fan .fc:not(.c3) span { display: none; }
.fan .fc span { position: absolute; left: 12px; bottom: 11px; z-index: 1; font-weight: 800; font-size: 14.5px; text-shadow: 0 2px 10px rgba(0, 0, 0, .6); }
.fan .fc.c1 { transform: translate(-108%, -44%) rotate(-11deg); }
.fan .fc.c2 { transform: translate(8%, -44%) rotate(11deg); }
.fan .fc.c3 { transform: translate(-50%, -52%) scale(1.1); z-index: 2; box-shadow: 0 30px 60px -16px rgba(0, 0, 0, .9), 0 0 0 2px rgba(255, 90, 110, .7), 0 0 40px -6px rgba(255, 46, 99, .55); }
.fan .fc.c3 img { filter: none; }
.fan:hover .fc.c1 { transform: translate(-112%, -44%) rotate(-14deg); }
.fan:hover .fc.c2 { transform: translate(12%, -44%) rotate(14deg); }
.fan .fc.ghost { display: grid; place-items: end center; background: linear-gradient(160deg, #3a1d5c 0%, #6b2154 55%, #2a1230 100%); }
.fan .fc.ghost::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 30%, rgba(255, 90, 140, .35), transparent 60%);
  animation: ghostGlow 3s ease-in-out infinite; }
@keyframes ghostGlow { 50% { opacity: .45; } }
.fan .fc .sil { position: relative; width: 78%; height: auto; fill: rgba(255, 255, 255, .13); }
.fan .fc.c3.ghost .sil { fill: rgba(255, 255, 255, .2); }
.early { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 6px auto 14px; padding: 9px 14px; border-radius: 14px; font-size: 13px; font-weight: 600;
  color: var(--muted); background: rgba(255, 197, 61, .08); box-shadow: inset 0 0 0 1px rgba(255, 197, 61, .25); text-align: center; }
.early svg { font-size: 15px; color: var(--gold); }
.early b { color: var(--text); }
.match-badge { position: absolute; z-index: 3; left: 50%; bottom: 2%; transform: translateX(-50%); display: flex; align-items: center; gap: 7px;
  padding: 9px 15px 9px 11px; border-radius: 999px; font-weight: 800; font-size: 13.5px; white-space: nowrap;
  background: rgba(16, 11, 24, .72); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px var(--line2), 0 10px 26px -10px rgba(0, 0, 0, .8);
  animation: bob 3s ease-in-out infinite; }
.match-badge svg { color: var(--hot); font-size: 18px; animation: beat 1.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateX(-50%) translateY(-5px); } }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.25); } 30% { transform: scale(1); } 45% { transform: scale(1.15); } }

.facepile { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 6px 0 14px; font-size: 13.5px; color: var(--muted); font-weight: 600; }
.facepile > i { width: 30px; height: 30px; border-radius: 50%; background: #222 center/cover; margin-right: -22px; box-shadow: 0 0 0 2.5px var(--bg); }
.facepile > i:nth-child(5) { margin-right: 0; }
.facepile span { margin-left: 4px; }
.facepile b { color: var(--text); }
.facepile em { font-style: normal; color: var(--green); display: inline-flex; align-items: center; gap: 5px; }
.facepile em i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: ping 1.6s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(46, 229, 157, .7); } 70% { box-shadow: 0 0 0 9px rgba(46, 229, 157, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 229, 157, 0); } }

.hero h1 { font-size: 31px; line-height: 1.06; text-align: center; }
.hero h1 .grad-text { background-size: 200% 100%; animation: gradMove 4s ease-in-out infinite; background-image: linear-gradient(90deg, #ff2e63, #ff8a3d, #ff4fa3, #ff2e63); }
@keyframes gradMove { 50% { background-position: 100% 0; } }
.hero p { text-align: center; color: var(--muted); margin: 10px 8px 0; font-size: 15.5px; }
.perks { display: flex; justify-content: center; gap: 8px; margin: 14px 0 16px; flex-wrap: wrap; }
.perks span { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; padding: 7px 11px; border-radius: 11px;
  background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); }
.perks svg { font-size: 14px; color: var(--hot2); }
.legal a, .legal-links a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.legal-links { text-align: center; font-size: 13px; color: var(--muted); margin-top: 18px; }
.legal { font-size: 11.5px; color: var(--muted); text-align: center; margin-top: 12px; opacity: .75; line-height: 1.45; }

/* ---------- онбординг ---------- */
.ob { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.ob-head { padding: 16px 20px 0; }
.progress { display: flex; gap: 6px; }
.progress i { flex: 1; height: 5px; border-radius: 5px; background: var(--card2); overflow: hidden; position: relative; }
.progress i.on::after { content: ''; position: absolute; inset: 0; background: var(--grad); box-shadow: 0 0 12px rgba(255, 46, 99, .8); animation: fill .5s var(--ease); }
@keyframes fill { from { transform: translateX(-100%); } }
.ob-body { flex: 1; overflow-y: auto; padding: 24px 20px 20px; animation: slideIn .4s var(--ease); }
@keyframes slideIn { from { opacity: 0; transform: translateX(30px); } }
.ob-body h2 { font-size: 27px; line-height: 1.1; }
.ob-body .sub { color: var(--muted); margin-top: 8px; }
.ob-foot { padding: 14px 20px calc(16px + var(--safe-b)); background: linear-gradient(transparent, var(--bg) 35%); }
.ob-foot .hint { text-align: center; font-size: 13px; color: var(--muted); margin-bottom: 10px; }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; }
.tile { position: relative; aspect-ratio: 1 / 1.08; border-radius: 22px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-weight: 750; transition: all .25s var(--ease); }
.tile .e { font-size: 40px; transition: transform .35s var(--spring); filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .4)); }
.tile .tick { position: absolute; top: 9px; right: 9px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; color: #fff;
  background: var(--grad); transform: scale(0); transition: transform .3s var(--spring); }
.tile.on { background: linear-gradient(160deg, rgba(255, 46, 99, .26), rgba(139, 92, 246, .12)); box-shadow: inset 0 0 0 1.5px rgba(255, 80, 100, .95), 0 12px 28px -12px rgba(255, 46, 99, .8); }
.tile.on .e { transform: scale(1.18) rotate(-6deg); }
.tile.on .tick { transform: scale(1); }

.age-picker { position: relative; margin: 0 -20px; }
.age-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px calc(50% - 30px); scrollbar-width: none; }
.age-track::-webkit-scrollbar { display: none; }
.age-track b { flex: 0 0 60px; height: 66px; display: grid; place-items: center; scroll-snap-align: center; font: 700 22px Unbounded, sans-serif;
  color: var(--muted); opacity: .4; transition: all .2s var(--ease); }
.age-track b.on { color: #fff; opacity: 1; transform: scale(1.35); }
.age-picker::before { content: ''; position: absolute; left: 50%; top: 6px; bottom: 6px; width: 70px; transform: translateX(-50%); border-radius: 20px;
  background: var(--grad); z-index: -1; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 12px 30px -10px rgba(255, 46, 99, .9); }
.age-picker::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, var(--bg), transparent 30%, transparent 70%, var(--bg)); }

.city-search { position: relative; margin-top: 10px; }
.city-search .input { padding-left: 46px; height: 50px; font-size: 15px; }
.city-search::before { content: ''; position: absolute; left: 17px; top: 16px; width: 13px; height: 13px; border: 2.2px solid var(--muted); border-radius: 50%; }
.city-search::after { content: ''; position: absolute; left: 30px; top: 30px; width: 6px; height: 2.2px; background: var(--muted); transform: rotate(45deg); border-radius: 2px; }

.photo-hero { margin-top: 18px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; }
.slot { position: relative; aspect-ratio: 3/4; border-radius: 20px; background: var(--glass); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  overflow: hidden; color: var(--muted); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .14); transition: transform .2s var(--spring); }
.slot:not(.filled) { background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .025) 0 10px, transparent 10px 20px); }
.slot:active { transform: scale(.97); }
.slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slot.filled { box-shadow: 0 12px 30px -14px rgba(0, 0, 0, .9); }
.slot .plus { width: 46px; height: 46px; border-radius: 16px; background: var(--grad); display: grid; place-items: center; font-size: 22px; color: #fff; font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 10px 24px -8px rgba(255, 46, 99, .9); }
.photo-grid .slot .plus { width: 36px; height: 36px; border-radius: 13px; font-size: 20px; }
.slot .slot-cap { font-size: 13px; font-weight: 700; }
.slot .main-tag { position: absolute; left: 8px; top: 8px; font-size: 11px; font-weight: 800; padding: 5px 9px; border-radius: 9px; background: rgba(10, 6, 16, .6); backdrop-filter: blur(8px); color: #fff; }
.slot .spin { width: 30px; height: 30px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .15); border-top-color: var(--hot); animation: spin .8s linear infinite; z-index: 2; }
@keyframes spin { to { transform: rotate(360deg); } }
.photo-side { display: grid; gap: 10px; align-content: start; }
.photo-side .note { font-size: 13px; color: var(--muted); padding: 13px; border-radius: 18px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); line-height: 1.38; }
.photo-side .note b { color: var(--text); }

/* ---------- основной экран ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px 6px; gap: 10px; }
.topbar .brand { font-size: 20px; }
.tb-actions { display: flex; gap: 8px; }
.pill-tonight { height: 42px; padding: 0 15px 0 12px; border-radius: 15px; font-weight: 750; font-size: 13.5px; display: flex; align-items: center; gap: 7px;
  background: var(--glass); box-shadow: inset 0 0 0 1px var(--line2); backdrop-filter: blur(12px); transition: all .3s var(--ease); }
.pill-tonight svg { font-size: 16px; color: #b9a4ff; transition: transform .5s var(--spring); }
.pill-tonight.on { background: linear-gradient(135deg, rgba(139, 92, 246, .55), rgba(255, 46, 99, .45)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25), 0 10px 26px -10px rgba(139, 92, 246, .9); }
.pill-tonight.on svg { color: #fff; transform: rotate(-20deg) scale(1.1); }

.view { flex: 1; min-height: 0; display: flex; flex-direction: column; padding-bottom: calc(var(--tabbar) + var(--safe-b)); }

.deck-wrap { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; --act-h: 96px; --act-b: 8px; }
.deck { position: relative; flex: 1; margin: 6px 12px 8px; min-height: 0; }
.card { position: absolute; inset: 0; border-radius: 28px; overflow: hidden; background: var(--bg2);
  box-shadow: 0 26px 60px -22px rgba(0, 0, 0, .95), inset 0 0 0 1px rgba(255, 255, 255, .08);
  will-change: transform; touch-action: none; user-select: none; transform-origin: 50% 110%; }
.card.back { transform: scale(.94); transform-origin: 50% 50%; filter: brightness(.6); transition: transform .35s var(--ease), filter .35s; }
.card .ph { position: absolute; inset: 0; background: #1b1626 50% 30% / cover no-repeat; }
.card .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .3) 0%, transparent 12%, transparent 50%, rgba(8, 4, 14, .5) 68%, rgba(8, 4, 14, .9) 100%); }
.card .bars { position: absolute; left: 12px; right: 12px; top: 10px; display: flex; gap: 5px; z-index: 2; }
.card .bars i { flex: 1; height: 3.5px; border-radius: 3px; background: rgba(255, 255, 255, .3); backdrop-filter: blur(4px); }
.card .bars i.on { background: #fff; box-shadow: 0 0 8px rgba(255, 255, 255, .6); }
.card .tags { position: absolute; left: 12px; top: 24px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 2; }
.tag { font-size: 12px; font-weight: 800; padding: 6px 10px; border-radius: 11px; background: rgba(10, 6, 16, .55); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.tag.hot { background: var(--grad); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 6px 16px -6px rgba(255, 46, 99, .9); }
.tag.violet { background: var(--grad2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3); }
.tag.demo { background: rgba(255, 255, 255, .16); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.pv-demo { margin: 0 0 14px; font-size: 13px; color: var(--muted); }
.tag.new { background: var(--green); color: #04301c; box-shadow: none; }
.card .info { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 20px calc(var(--act-h, 0px) + var(--act-b, 0px) + 2px); z-index: 2; }
.deck-wrap:has(.likes-left:not([hidden])) .card .info { padding-bottom: calc(var(--act-h) + var(--act-b) + 38px); }
.card .name { font: 800 30px Unbounded, sans-serif; display: flex; align-items: center; gap: 10px; letter-spacing: -.035em; text-shadow: 0 2px 16px rgba(0, 0, 0, .5); }
.card .name span { font-weight: 500; opacity: .92; }
.dot { width: 11px; height: 11px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(46, 229, 157, .25), 0 0 12px var(--green); flex: none; }
.card .meta { margin-top: 6px; font-weight: 650; opacity: .9; font-size: 14.5px; display: flex; align-items: center; gap: 5px; }
.card .meta svg { font-size: 15px; color: var(--hot2); }
.card .bio { margin-top: 8px; font-size: 14.5px; opacity: .88; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .intents { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 11px; }
.card .intents span { font-size: 12.5px; font-weight: 700; padding: 6px 11px; border-radius: 999px; background: rgba(255, 255, 255, .12); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.card .tap { position: absolute; top: 0; bottom: 35%; width: 50%; z-index: 1; }
.card .tap.l { left: 0; } .card .tap.r { right: 0; }
.stamp { position: absolute; top: 50px; z-index: 3; font: 800 34px Unbounded, sans-serif; padding: 4px 16px; border: 4px solid; border-radius: 16px; opacity: 0; letter-spacing: .02em; backdrop-filter: blur(4px); }
.stamp.like { left: 22px; color: var(--green); border-color: var(--green); transform: rotate(-16deg); box-shadow: 0 0 30px -4px rgba(46, 229, 157, .6); }
.stamp.nope { right: 22px; color: var(--hot); border-color: var(--hot); transform: rotate(16deg); box-shadow: 0 0 30px -4px rgba(255, 46, 99, .6); }
.stamp.super { left: 50%; top: auto; bottom: 36%; color: var(--blue); border-color: var(--blue); transform: translateX(-50%) rotate(-6deg); box-shadow: 0 0 30px -4px rgba(63, 184, 255, .6); }

/* кнопки свайпа */
.deck-wrap .likes-left { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(var(--act-h) + var(--act-b) + 6px); margin: 0; z-index: 6; white-space: nowrap; }
.likes-left { align-self: center; display: flex; align-items: center; gap: 6px; margin-top: 10px; padding: 6px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; color: #ffb3c4; background: rgba(255, 46, 99, .12); box-shadow: inset 0 0 0 1px rgba(255, 46, 99, .3); }
.likes-left[hidden] { display: none; }
.likes-left svg { font-size: 13px; color: var(--hot); }
.limit-tips { display: grid; gap: 8px; text-align: left; margin: 0 0 18px; }
.limit-tips div { padding: 11px 14px; border-radius: 14px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; }
.coach { position: absolute; inset: 0; z-index: 5; border-radius: 28px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 18px;
  padding: 24px; background: rgba(8, 4, 14, .72); backdrop-filter: blur(3px); animation: fade .3s; text-align: center; }
.coach.hide { opacity: 0; transition: opacity .25s; }
.coach b { display: block; font: 700 17px Unbounded, sans-serif; margin-top: 6px; }
.coach i { font-style: normal; font-size: 13px; color: var(--muted); font-weight: 600; }
.coach svg { font-size: 34px; margin: 0 auto; }
.coach-row { display: flex; justify-content: space-between; width: 100%; }
.coach-l { color: var(--hot); animation: nudgeL 1.6s ease-in-out infinite; }
.coach-r { color: var(--green); animation: nudgeR 1.6s ease-in-out infinite; }
.coach-up { color: var(--blue); animation: nudgeU 1.6s ease-in-out infinite; }
.coach-l b, .coach-r b, .coach-up b { color: var(--text); }
.coach-tap { font-size: 14px; font-weight: 600; color: #ddd6ea; line-height: 1.5; padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, .08); }
.coach-ok { max-width: 200px; }
@keyframes nudgeL { 50% { transform: translateX(-8px); } }
@keyframes nudgeR { 50% { transform: translateX(8px); } }
@keyframes nudgeU { 50% { transform: translateY(-8px); } }
.msg.deleted { display: flex; align-items: center; gap: 6px; font-style: italic; color: var(--muted); background: transparent;
  border: 1px dashed rgba(255, 255, 255, .14); box-shadow: none; }
.msg.deleted.mine { background: transparent; color: var(--muted); box-shadow: none; }
.msg.deleted svg { width: 14px; height: 14px; flex: none; }
.msg.mine:not(.deleted) { cursor: pointer; }
.up-pct { position: absolute; left: 0; right: 0; top: calc(50% + 22px); text-align: center; font-size: 12px; font-weight: 800; color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .6); font-variant-numeric: tabular-nums; }
/* Лента во весь экран: фото от края до края, без рамки и закруглений; шапка поверх фото */
.on-deck { --top-h: 66px; }
.on-deck .topbar { position: absolute; top: 0; left: 0; right: 0; z-index: 8; padding-top: calc(12px + var(--safe-t, 0px)); }
.on-deck .deck { margin: 0; }
/* фото уходит и под нижнее меню — до самого края экрана; кнопки и текст — над меню */
.on-deck .view { padding-bottom: 0; }
.on-deck .deck-wrap { --act-b: calc(var(--tabbar) + var(--safe-b) + 6px); }
.on-deck .card { border-radius: 0; box-shadow: none; }
.on-deck .card.back { transform: none; filter: brightness(.55); }
.on-deck .card .shade { background: linear-gradient(180deg, rgba(8, 4, 14, .55) 0%, rgba(8, 4, 14, .15) 12%, transparent 20%, transparent 50%, rgba(8, 4, 14, .5) 68%, rgba(8, 4, 14, .9) 100%); }
.on-deck .card .bars { top: calc(var(--top-h) + var(--safe-t, 0px)); }
.on-deck .card .tags { top: calc(var(--top-h) + var(--safe-t, 0px) + 14px); }
.on-deck .coach { border-radius: 0; padding-top: calc(var(--top-h) + 24px); }
.support .sup-ava { display: grid; place-items: center; font-size: 22px; color: #fff; background: var(--grad); }
.support .sup-ava.big { width: 84px; height: 84px; font-size: 38px; margin: 0 auto 12px; }
.msg.sup { background: rgba(139, 92, 246, .16); box-shadow: inset 0 0 0 1px rgba(139, 92, 246, .35); }
.msg .sup-name { display: block; font-size: 12px; color: #b9a4ff; margin-bottom: 2px; }
.bdg.static { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--grad); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.actions { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 16px 0 6px; }
/* кнопки поверх нижней части фото; между ними карточку можно тянуть пальцем */
.deck-wrap .actions { position: absolute; left: 0; right: 0; bottom: var(--act-b); height: var(--act-h); padding: 0 0 12px; align-items: flex-end; z-index: 6; pointer-events: none; }
.deck-wrap .actions .act { pointer-events: auto; }
.act { position: relative; border-radius: 50%; display: grid; place-items: center; color: var(--text);
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .14), rgba(255, 255, 255, .03) 60%), rgba(20, 15, 30, .92);
  box-shadow: inset 0 0 0 1px var(--line2), 0 14px 30px -12px rgba(0, 0, 0, .9); backdrop-filter: blur(12px);
  transition: transform .2s var(--spring), box-shadow .2s; }
.act:active { transform: scale(.85); }
.act.s { width: 50px; height: 50px; font-size: 21px; }
.act.l { width: 68px; height: 68px; font-size: 30px; }
.act.undo { color: var(--gold); }
.act.pass { color: var(--hot); box-shadow: inset 0 0 0 1.5px rgba(255, 46, 99, .45), 0 14px 30px -12px rgba(0, 0, 0, .9); }
.act.super { color: var(--blue); box-shadow: inset 0 0 0 1.5px rgba(63, 184, 255, .45), 0 14px 30px -12px rgba(0, 0, 0, .9); }
.act.like { background: var(--grad); color: #fff; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .35), 0 0 0 6px rgba(255, 46, 99, .14), 0 16px 34px -10px rgba(255, 46, 99, .95); }
.act.like svg { filter: drop-shadow(0 2px 4px rgba(120, 0, 30, .4)); }
.act.like:hover { box-shadow: inset 0 2px 0 rgba(255, 255, 255, .35), 0 0 0 10px rgba(255, 46, 99, .12), 0 18px 40px -8px rgba(255, 46, 99, 1); }
.act .cnt { position: absolute; right: -3px; bottom: -3px; min-width: 19px; height: 19px; font-size: 10.5px; font-weight: 800; line-height: 19px; text-align: center;
  background: var(--blue); color: #001a2b; border-radius: 10px; padding: 0 5px; box-shadow: 0 0 0 2.5px var(--bg); }

.empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px; gap: 12px; }
.empty .big { font-size: 64px; }
.empty h3 { font-size: 20px; }
.radar { width: 120px; height: 120px; border-radius: 50%; position: relative; display: grid; place-items: center; font-size: 40px; }
.radar::before, .radar::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--hot); animation: radar 2.4s ease-out infinite; }
.radar::after { animation-delay: 1.2s; }
@keyframes radar { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }

/* ---------- таббар: плавающая «таблетка» ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; height: calc(var(--tabbar) + var(--safe-b)); padding: 6px 10px calc(6px + var(--safe-b));
  display: flex; border-radius: 24px 24px 0 0; background: rgba(18, 13, 28, .92); backdrop-filter: blur(24px) saturate(1.4);
  box-shadow: inset 0 1px 0 var(--line2), 0 -12px 30px -14px rgba(0, 0, 0, .8); }
.tabbar button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 10.5px; font-weight: 750;
  color: var(--muted); position: relative; border-radius: 20px; transition: color .25s, background .3s var(--ease); }
.tabbar button .i { font-size: 23px; transition: transform .35s var(--spring); display: grid; place-items: center; }
.tabbar button.on { color: #fff; background: linear-gradient(160deg, rgba(255, 46, 99, .22), rgba(139, 92, 246, .14)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.tabbar button.on .i { transform: translateY(-1px) scale(1.08); color: var(--hot); filter: drop-shadow(0 4px 10px rgba(255, 46, 99, .7)); }
.tabbar button:active .i { transform: scale(.85); }
.tabbar .bdg { position: absolute; top: 5px; left: 50%; margin-left: 5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--grad);
  color: #fff; font-size: 10.5px; font-weight: 800; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px rgba(18, 13, 28, 1), 0 4px 10px -2px rgba(255, 46, 99, .8); }

/* ---------- списки ---------- */
.page { padding: 8px 16px 24px; }
.page h2 { font-size: 22px; margin: 6px 0 6px; }
.likes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.lk { position: relative; aspect-ratio: 3/4; border-radius: 18px; overflow: hidden; background: var(--grad2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.lk img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.25); transform: scale(1.08); } /* размыто уже на сервере */
.lk::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(0, 0, 0, .6)); }
.lk span { position: absolute; left: 9px; bottom: 7px; font-weight: 800; font-size: 15px; z-index: 1; }
.lk .st { position: absolute; right: 7px; top: 7px; font-size: 16px; z-index: 1; }
.cta-card { margin-top: 14px; padding: 18px; border-radius: 22px; background: linear-gradient(135deg, rgba(255, 46, 99, .22), rgba(139, 92, 246, .18));
  box-shadow: inset 0 0 0 1px rgba(255, 90, 120, .35), 0 16px 40px -20px rgba(255, 46, 99, .8); }
.cta-card b { display: block; font-size: 16px; margin-bottom: 4px; }

.new-matches { display: flex; gap: 14px; overflow-x: auto; padding: 4px 0 8px; scrollbar-width: none; }
.new-matches::-webkit-scrollbar { display: none; }
.nm { flex: none; width: 74px; text-align: center; font-size: 12.5px; font-weight: 750; }
.ava { position: relative; border-radius: 50%; background: var(--grad2) center/cover; flex: none; }
.nm .ava { width: 74px; height: 74px; padding: 3px; background: conic-gradient(from 200deg, #ff2e63, #ff8a3d, #8b5cf6, #ff2e63); margin-bottom: 6px; }
.nm .ava i { display: block; width: 100%; height: 100%; border-radius: 50%; background: #222 center/cover; border: 3px solid var(--bg); }
.ava .on { position: absolute; right: 2px; bottom: 2px; width: 15px; height: 15px; border-radius: 50%; background: var(--green); border: 3px solid var(--bg); }

.chat-row { display: flex; align-items: center; gap: 13px; padding: 10px 10px; margin: 0 -10px; border-radius: 18px; transition: background .15s; }
.chat-row:active { background: var(--card); }
.chat-row .ava { width: 58px; height: 58px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.chat-row .t { flex: 1; min-width: 0; }
.chat-row .t b { display: block; font-size: 16px; }
.chat-row .t p { margin: 2px 0 0; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.chat-row .t p.unr { color: var(--text); font-weight: 700; }
.chat-row .ub { min-width: 22px; height: 22px; border-radius: 11px; background: var(--grad); font-size: 12px; font-weight: 800; display: grid; place-items: center; padding: 0 6px; }
.chat-row .yt { font-size: 11px; font-weight: 800; padding: 5px 9px; border-radius: 9px; background: rgba(255, 197, 61, .14); color: var(--gold); box-shadow: inset 0 0 0 1px rgba(255, 197, 61, .3); }

/* ---------- чат ---------- */
.chat { position: fixed; inset: 0; z-index: 20; background: var(--bg); display: flex; flex-direction: column; animation: slideUp .35s var(--ease); }
@keyframes slideUp { from { transform: translateY(40px); opacity: 0; } }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: rgba(18, 13, 28, .85); backdrop-filter: blur(20px); box-shadow: 0 1px 0 var(--line); }
.chat-head .ava { width: 44px; height: 44px; }
.chat-head .t { flex: 1; cursor: pointer; }
.chat-head .t b { display: block; }
.chat-head .t small { color: var(--muted); }
.chat-head .t small.on { color: var(--green); }
.msgs { flex: 1; overflow-y: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 6px; }
.day-sep { align-self: center; margin: 10px 0 4px; position: sticky; top: 4px; z-index: 1; }
.day-sep span { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--muted);
  background: rgba(30, 24, 44, .85); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px var(--line); }
.msg { max-width: 78%; padding: 10px 14px; border-radius: 22px; background: rgba(255, 255, 255, .09); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
  align-self: flex-start; white-space: pre-wrap; word-wrap: break-word; border-bottom-left-radius: 7px; animation: pop .25s var(--spring); }
.msg.mine { align-self: flex-end; background: var(--grad); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 8px 20px -12px rgba(255, 46, 99, .9);
  border-radius: 22px; border-bottom-right-radius: 7px; }
.msg time { display: flex; justify-content: flex-end; align-items: center; gap: 3px; font-size: 10.5px; opacity: .6; margin-top: 2px; }
.msg .tick { display: inline-flex; font-size: 15px; opacity: .8; }
.msg .tick svg { width: 1.15em; }
.msg .tick.read { opacity: 1; color: #fff; }
.msg.mine time { opacity: .75; }
@keyframes pop { from { transform: scale(.85); opacity: 0; } }
.chat-intro { text-align: center; margin: auto 0; padding: 20px; }
.chat-intro .ava { width: 104px; height: 104px; margin: 0 auto 14px; box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px var(--hot), 0 16px 40px -10px rgba(255, 46, 99, .8); }
.icebreakers { display: flex; gap: 8px; overflow-x: auto; padding: 8px 14px; scrollbar-width: none; }
.icebreakers::-webkit-scrollbar { display: none; }
.composer { display: flex; gap: 8px; align-items: flex-end; padding: 8px 12px calc(10px + var(--safe-b)); background: rgba(18, 13, 28, .85); backdrop-filter: blur(20px); box-shadow: 0 -1px 0 var(--line); }
.composer textarea { flex: 1; height: 46px; max-height: 120px; border-radius: 23px; padding: 12px 18px; background: var(--glass); border: 0; box-shadow: inset 0 0 0 1px var(--line2); outline: none; resize: none; font-size: 15px; }
.composer textarea:focus { box-shadow: inset 0 0 0 1.5px var(--hot); }
.composer button { width: 46px; height: 46px; border-radius: 50%; background: var(--grad); font-size: 19px; flex: none; display: grid; place-items: center; color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 8px 20px -8px rgba(255, 46, 99, .9); transition: transform .2s var(--spring); }
.composer button:active { transform: scale(.88) rotate(-12deg); }

/* голосовые */
.msg.voice { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 230px; }
.msg.voice time { width: 100%; }
.vplay { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 17px; flex: none; color: var(--bg);
  background: #fff; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .6); transition: transform .15s var(--spring); }
.msg:not(.mine) .vplay { background: var(--grad); color: #fff; }
.vplay:active { transform: scale(.88); }
.vplay[disabled] { opacity: .5; }
.wave { flex: 1; height: 28px; display: flex; align-items: center; gap: 2px; }
.wave i { flex: 1; border-radius: 2px; background: rgba(255, 255, 255, .35); transition: background .15s; }
.wave i.on { background: #fff; }
.vdur { font-size: 12.5px; font-weight: 700; opacity: .85; min-width: 32px; text-align: right; }
.composer { position: relative; }
.rec-bar { position: absolute; inset: 0; display: flex; align-items: center; gap: 10px; padding: 8px 12px calc(10px + var(--safe-b)); background: var(--bg2); animation: fade .15s; }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--hot); animation: recBlink 1s ease-in-out infinite; }
@keyframes recBlink { 50% { opacity: .25; } }
.rec-time { font: 700 16px Unbounded, sans-serif; min-width: 52px; }
.rec-hint { flex: 1; color: var(--muted); font-size: 13px; }
.rec-send { width: 46px; height: 46px; border-radius: 50%; background: var(--grad); color: #fff; font-size: 19px; display: grid; place-items: center; }

/* одноразовые фото */
.composer .cam { width: 46px; height: 46px; border-radius: 50%; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line2); color: var(--text); font-size: 20px; }
.msg.photo { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 210px; }
.msg.photo > span:nth-child(2) { display: flex; flex-direction: column; flex: 1; }
.msg.photo b { font-size: 14.5px; }
.msg.photo .ph-st { font-size: 12.5px; opacity: .75; }
.msg.photo .ph-ic { width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center; font-size: 19px; background: rgba(255, 255, 255, .14); }
.msg.photo time { width: 100%; }
.msg.photo.live { cursor: pointer; background: linear-gradient(135deg, rgba(139, 92, 246, .5), rgba(255, 46, 99, .45)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2), 0 10px 26px -12px rgba(255, 46, 99, .9); animation: pop .25s var(--spring), livePulse 2s ease-in-out infinite; }
.msg.photo.live .ph-ic { background: var(--grad); color: #fff; }
@keyframes livePulse { 50% { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3), 0 10px 32px -8px rgba(255, 46, 99, 1); } }
.msg.photo.gone { opacity: .6; }
.once-preview { width: 100%; max-height: 38vh; object-fit: contain; border-radius: 20px; margin-bottom: 14px; background: #000; }
.once-view { position: fixed; inset: 0; z-index: 70; background: #000; display: grid; place-items: center; animation: fade .2s; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.once-view img { max-width: 100%; max-height: 100%; object-fit: contain; pointer-events: none; }
.once-view .icon-btn { position: absolute; top: calc(14px + env(safe-area-inset-top, 0px)); right: 14px; }
.once-bar { position: absolute; top: calc(8px + env(safe-area-inset-top, 0px)); left: 14px; right: 66px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.once-bar i { display: block; height: 100%; background: #fff; animation: onceBar 10s linear forwards; }
@keyframes onceBar { from { width: 100%; } to { width: 0; } }

/* ---------- профиль ---------- */
.me-card { display: flex; gap: 16px; align-items: center; margin-top: 6px; }
.me-card .ava { width: 82px; height: 82px; box-shadow: 0 0 0 3px var(--bg), 0 0 0 5.5px var(--hot), 0 14px 30px -10px rgba(255, 46, 99, .8); }
.me-card h2 { font-size: 22px; }
.me-card .ava { position: relative; flex: none; padding: 0; border: 0; cursor: pointer; display: grid; place-items: center; }
.me-card .ava .spin { width: 28px; height: 28px; }
.me-card .ava .up-pct { top: calc(50% + 14px); font-size: 11px; }
.ava-empty { font-size: 30px; color: var(--muted); }
/* значок камеры — подсказка, что аватарку можно сменить */
.ava-cam { position: absolute; right: -4px; bottom: -4px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font-size: 15px; color: #fff; background: var(--grad); box-shadow: 0 0 0 3px var(--bg), 0 6px 14px -4px rgba(255, 46, 99, .8); }
.bio-hints { margin-top: 10px; font-size: 13px; }
.bio-hints .chips { margin-top: 8px; }
.bio-hints .chip { font-size: 13px; padding: 8px 12px; }
.meter { margin-top: 18px; padding: 16px; border-radius: 22px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); }
.meter .bar { height: 9px; border-radius: 9px; background: var(--card2); overflow: hidden; margin-top: 10px; }
.meter .bar i { display: block; height: 100%; background: var(--grad); border-radius: 9px; transition: width .8s var(--ease); box-shadow: 0 0 12px rgba(255, 46, 99, .7); }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.row-toggle { display: flex; align-items: center; justify-content: space-between; padding: 15px 0; border-bottom: 1px solid var(--line); gap: 12px; font-weight: 650; }
.row-toggle small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 500; margin-top: 2px; }
.switch { width: 52px; height: 32px; border-radius: 16px; background: var(--card2); position: relative; transition: background .25s; flex: none; box-shadow: inset 0 0 0 1px var(--line); }
.switch::after { content: ''; position: absolute; left: 3px; top: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; transition: transform .3s var(--spring); box-shadow: 0 3px 8px rgba(0, 0, 0, .35); }
.switch.on { background: var(--grad); box-shadow: 0 0 16px -4px rgba(255, 46, 99, .9); }
.switch.on::after { transform: translateX(20px); }
.range2 { position: relative; height: 38px; }
.range2 input { position: absolute; inset: 0; width: 100%; appearance: none; background: none; pointer-events: none; }
.range2 input::-webkit-slider-thumb { appearance: none; pointer-events: auto; width: 28px; height: 28px; border-radius: 50%; background: #fff; cursor: pointer;
  box-shadow: 0 0 0 5px rgba(255, 46, 99, .9), 0 6px 14px rgba(0, 0, 0, .5); }
.range2 input::-moz-range-thumb { pointer-events: auto; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 4px solid var(--hot); }
.range2 .track { position: absolute; left: 0; right: 0; top: 16px; height: 6px; border-radius: 3px; background: var(--card2); }
.range2 .track i { position: absolute; top: 0; bottom: 0; background: var(--grad); border-radius: 3px; box-shadow: 0 0 10px rgba(255, 46, 99, .6); }
.danger { color: var(--hot); font-weight: 700; padding: 18px 0; width: 100%; text-align: center; opacity: .85; }

/* ---------- покупки ---------- */
.star-ic { font-size: 18px; filter: drop-shadow(0 2px 4px rgba(120, 60, 0, .5)); }
.cta-card.reveal, .cta-card.boost { background: linear-gradient(135deg, rgba(255, 197, 61, .16), rgba(255, 46, 99, .2)); box-shadow: inset 0 0 0 1px rgba(255, 197, 61, .35), 0 16px 40px -20px rgba(255, 140, 50, .8); }
.link-btn { display: block; width: 100%; margin-top: 10px; color: var(--muted); font-weight: 700; font-size: 13.5px; }
.likes-grid .lk { cursor: pointer; padding: 0; text-align: left; transition: transform .2s var(--spring); }
.likes-grid .lk:active { transform: scale(.95); }
.likes-grid.open .lk span { font-size: 13.5px; }
.lk-dot { position: absolute; right: 8px; bottom: 10px; z-index: 1; }
.offer { text-align: center; padding: 6px 0 4px; }
.offer-ic { width: 84px; height: 84px; margin: 4px auto 14px; border-radius: 28px; display: grid; place-items: center; font-size: 44px;
  background: linear-gradient(135deg, rgba(255, 197, 61, .3), rgba(255, 46, 99, .3)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15), 0 16px 40px -14px rgba(255, 140, 50, .9);
  animation: bob2 2.6s ease-in-out infinite; }
@keyframes bob2 { 50% { transform: translateY(-5px) rotate(-4deg); } }
.offer-ic.notify-ic { background: linear-gradient(135deg, rgba(255, 197, 61, .3), rgba(139, 92, 246, .3)); }
.offer h3 { font-size: 22px; margin: 0 0 6px; }
.offer p.muted { margin: 0 0 18px; }
.offer .later { display: block; width: 100%; margin-top: 12px; color: var(--muted); font-weight: 700; padding: 6px; }

.vbadge { display: inline-grid; place-items: center; font-size: .78em; filter: drop-shadow(0 2px 6px rgba(63, 184, 255, .55)); }
.vbadge svg { width: 1em; height: 1em; }
.card .name .vbadge { font-size: 24px; }
.cta-card.verify { background: linear-gradient(135deg, rgba(63, 184, 255, .16), rgba(139, 92, 246, .16)); box-shadow: inset 0 0 0 1px rgba(63, 184, 255, .35), 0 16px 40px -20px rgba(63, 184, 255, .6); }
.cta-card.verify .vbadge { font-size: 20px; }
.offer-ic.gesture { background: linear-gradient(135deg, rgba(63, 184, 255, .3), rgba(139, 92, 246, .3)); font-size: 48px; }

/* ---------- шторки, оверлеи ---------- */
.sheet-bg { position: fixed; inset: 0; z-index: 40; background: rgba(4, 2, 8, .65); backdrop-filter: blur(6px); animation: fade .25s; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; max-height: 88vh; display: flex; flex-direction: column;
  background: linear-gradient(180deg, #1a1426, var(--bg2) 120px); border-radius: 30px 30px 0 0; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 -20px 60px -20px rgba(0, 0, 0, .9);
  animation: sheetUp .38s var(--ease); padding-bottom: var(--safe-b); }
.sheet .grab { width: 42px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .2); margin: 10px auto 4px; flex: none; }
.sheet .sc { overflow-y: auto; padding: 8px 20px 20px; }
.sheet h3 { font-size: 20px; margin: 6px 0 12px; }
.sheet .list button { display: flex; width: 100%; align-items: center; gap: 12px; padding: 15px 6px; border-bottom: 1px solid var(--line); font-weight: 650; font-size: 16px; text-align: left; border-radius: 12px; transition: background .15s; }
.sheet .list button:active { background: var(--card); }
.sheet .list button small { margin-left: auto; color: var(--muted); font-weight: 600; }
@keyframes sheetUp { from { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }

.profile-sheet .gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; margin: 0 -20px; padding: 0 20px; scrollbar-width: none; }
/* Анкета на весь экран (как в Tinder): фото, имя поверх, кнопки всегда видны внизу */
.pview { position: fixed; inset: 0; z-index: 42; background: var(--bg); animation: slideUp .32s var(--ease); }
.pv-scroll { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; }
.pview.with-acts .pv-body { padding-bottom: calc(120px + var(--safe-b)); } /* отступ внутри блока: иначе при коротком тексте «Пожаловаться» уходит под кнопки */
.pv-photo { position: relative; height: min(70vh, 133vw); background: #1b1626 50% 30% / cover no-repeat; }
.pv-photo::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 4, 14, .45) 0%, transparent 16%, transparent 55%, rgba(8, 4, 14, .92) 100%); }
.pv-photo .bars { position: absolute; left: 12px; right: 12px; top: calc(10px + var(--safe-t)); display: flex; gap: 5px; z-index: 3; }
.pv-photo .bars i { flex: 1; height: 3.5px; border-radius: 3px; background: rgba(255, 255, 255, .3); }
.pv-photo .bars i.on { background: #fff; box-shadow: 0 0 8px rgba(255, 255, 255, .6); }
.pv-tap { position: absolute; top: 0; bottom: 30%; width: 50%; z-index: 2; background: none; border: 0; padding: 0; }
.pv-tap.l { left: 0; } .pv-tap.r { right: 0; }
.pv-close { position: absolute; right: 14px; top: calc(24px + var(--safe-t)); z-index: 4; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  font-size: 20px; color: #fff; background: rgba(10, 6, 16, .5); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.pv-close svg { transform: rotate(-90deg); }
.pv-head { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 0 20px 18px; }
.pv-head h2 { margin: 0; font: 800 30px Unbounded, sans-serif; letter-spacing: -.035em; display: flex; align-items: center; gap: 10px; text-shadow: 0 2px 16px rgba(0, 0, 0, .5); }
.pv-head h2 span { font-weight: 500; opacity: .92; }
.pv-head .meta { margin-top: 6px; font-weight: 650; opacity: .9; font-size: 14.5px; display: flex; align-items: center; gap: 5px; }
.pv-head .meta svg { font-size: 15px; color: var(--hot2); }
.pv-body { padding: 16px 20px 8px; }
.pv-label { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 6px 0 8px; }
.pv-bio { margin: 0 0 14px; font-size: 16px; line-height: 1.5; white-space: pre-wrap; }
.pv-report { display: block; margin: 22px auto 0; background: none; border: 0; color: var(--muted); font-weight: 650; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.pv-acts { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; align-items: center; justify-content: center; gap: 22px;
  padding: 26px 0 calc(18px + var(--safe-b)); background: linear-gradient(180deg, transparent, rgba(10, 8, 16, .92) 45%); }
.profile-sheet .gallery img:only-child { flex-basis: 100%; width: 100%; }
.profile-sheet .gallery img { flex: 0 0 82%; width: 82%; min-width: 0; height: auto; aspect-ratio: 3/4; object-fit: cover; /* min-width: auto растянул бы фото до натуральных 1024px */ border-radius: 22px; scroll-snap-align: center; box-shadow: 0 16px 40px -18px rgba(0, 0, 0, .9); }

.match-ov { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px;
  background: radial-gradient(circle at 50% 35%, rgba(255, 46, 99, .5), rgba(10, 6, 16, .97) 65%); backdrop-filter: blur(14px); animation: fade .3s; text-align: center; }
.match-ov h1 { font-size: 42px; margin-bottom: 8px; animation: zoom .7s var(--spring); }
@keyframes zoom { from { transform: scale(.3) rotate(-10deg); opacity: 0; } }
.match-ov .pair { display: flex; margin: 26px 0; }
.match-ov .pair .ava { width: 124px; height: 124px; box-shadow: 0 0 0 4px #fff, 0 20px 50px -10px rgba(0, 0, 0, .9); }
.match-ov .pair .ava:first-child { transform: rotate(-8deg) translateX(14px); animation: inL .7s var(--spring); }
.match-ov .pair .ava:last-child { transform: rotate(8deg) translateX(-14px); animation: inR .7s var(--spring); }
@keyframes inL { from { transform: translateX(-120px) rotate(-30deg); opacity: 0; } }
@keyframes inR { from { transform: translateX(120px) rotate(30deg); opacity: 0; } }
.match-ov .chips { justify-content: center; margin: 4px 0 16px; }
.match-ov .btn { max-width: 360px; }
.match-ov .later { margin-top: 14px; color: var(--muted); font-weight: 700; }
.heart { position: fixed; z-index: 51; pointer-events: none; font-size: 26px; animation: rise 2.4s ease-out forwards; }
@keyframes rise { to { transform: translateY(-90vh) rotate(var(--r)) scale(1.4); opacity: 0; } }

#toast { position: fixed; left: 50%; top: 14px; transform: translate(-50%, -160%); z-index: 60; padding: 12px 18px; border-radius: 18px; background: rgba(28, 21, 42, .92);
  backdrop-filter: blur(16px); box-shadow: inset 0 0 0 1px var(--line2), 0 16px 40px -14px rgba(0, 0, 0, .9);
  font-weight: 700; font-size: 14px; transition: transform .4s var(--spring); max-width: 90vw; text-align: center; }
#toast.show { transform: translate(-50%, 0); }

@media (min-width: 560px) {
  #app { max-width: 480px; margin: 0 auto; }
  .tabbar { max-width: 480px; margin: 0 auto; }
}
@media (max-height: 680px) {
  .fan { min-height: 190px; }
  .hero h1 { font-size: 25px; }
  .card .name { font-size: 25px; }
  .facepile { margin: 2px 0 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
