:root {
  --bg: #0b0b10;
  --surface: #16161f;
  --surface2: #20202c;
  --line: rgba(255, 255, 255, .09);
  --text: #f5f5fa;
  --hint: #8d8da3;
  --a1: #ff2d6f;
  --a2: #8a5cff;
  --grad: linear-gradient(120deg, var(--a1), var(--a2));
  --ok: #33d69f;
  --tabs: 64px;
  --safe-b: env(safe-area-inset-bottom);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; overscroll-behavior: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.boot { position: fixed; inset: 0; display: grid; place-items: center; }
.logo-big { font-size: 64px; font-weight: 900; letter-spacing: -2px; animation: breathe 1.4s ease-in-out infinite; }
.logo-big span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes breathe { 50% { transform: scale(1.06); opacity: .8; } }

/* ---------- кнопки ---------- */
.btn { border: 0; border-radius: 16px; padding: 16px 18px; font-size: 17px; font-weight: 800; background: var(--surface2);
  transition: transform 90ms ease, opacity .2s; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .35; }
.btn.primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px -12px var(--a1); }
.btn.ghost { background: transparent; color: var(--hint); }
.btn.wide { width: 100%; }
.icon-btn { border: 0; background: var(--surface); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; }

/* ---------- анкета ---------- */
.wizard { position: fixed; inset: 0; display: flex; flex-direction: column; }
.wz-top { display: flex; align-items: center; gap: 12px; padding: 12px 16px 6px; }
.wz-gap { width: 40px; }
.wz-bar { flex: 1; display: flex; gap: 4px; }
.wz-bar i { flex: 1; height: 4px; border-radius: 2px; background: var(--surface2); overflow: hidden; position: relative; }
.wz-bar i.done::after, .wz-bar i.now::after { content: ""; position: absolute; inset: 0; background: var(--grad); }
.wz-bar i.now::after { animation: fill .35s ease; }
@keyframes fill { from { transform: translateX(-100%); } }
.wz-body { flex: 1; overflow-y: auto; padding: 18px 20px 20px; -webkit-overflow-scrolling: touch; }
.wz-body.anim { animation: stepIn .28s cubic-bezier(.2, .8, .2, 1); }
.wz-body.back { animation-name: stepBack; }
@keyframes stepIn { from { transform: translateX(28px); opacity: 0; } }
@keyframes stepBack { from { transform: translateX(-28px); opacity: 0; } }
.wz-foot { display: flex; gap: 10px; padding: 10px 20px calc(14px + var(--safe-b)); }
.wz-foot .primary { flex: 1; }
.q { margin: 6px 0 6px; font-size: 32px; line-height: 1.08; font-weight: 900; letter-spacing: -.8px; }
.sub { margin: 0 0 22px; color: var(--hint); font-size: 15px; line-height: 1.4; }
.hero { padding-top: 12vh; text-align: left; }
.hero .logo-big { animation: none; font-size: 88px; line-height: 1; margin-bottom: 18px; }
.hero .q { font-size: 38px; }

.options { display: grid; gap: 10px; }
.opt { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; border: 0; border-radius: 20px;
  padding: 18px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow .15s, transform 90ms; }
.opt:active { transform: scale(.98); }
.opt b { display: block; font-size: 19px; }
.opt small { display: block; color: var(--hint); font-size: 14px; margin-top: 2px; }
.opt .dot { margin-left: auto; width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line); flex: none; }
.opt.on { box-shadow: inset 0 0 0 2px var(--a1); background: linear-gradient(120deg, rgba(255, 45, 111, .14), rgba(138, 92, 255, .14)); }
.opt.on .dot { background: var(--grad); box-shadow: none; }

/* возраст: лента чисел, выбранное по центру */
.wheel { position: relative; margin: 30px -20px 0; }
.wheel-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 calc(50% - 36px); scrollbar-width: none; }
.wheel-row::-webkit-scrollbar { display: none; }
.wheel-row span { flex: none; width: 72px; text-align: center; scroll-snap-align: center; font-size: 30px; font-weight: 800;
  color: var(--hint); opacity: .45; transition: transform .15s, opacity .15s, color .15s; padding: 22px 0; }
.wheel-row span.on { color: var(--text); opacity: 1; transform: scale(1.8); }
.wheel::before { content: ""; position: absolute; left: 50%; top: 4px; bottom: 4px; width: 92px; transform: translateX(-50%);
  border-radius: 22px; background: var(--surface); box-shadow: inset 0 0 0 2px var(--a1); pointer-events: none; z-index: -1; }
.age-note { text-align: center; color: var(--hint); font-size: 14px; margin-top: 18px; }

.field { width: 100%; border: 0; border-radius: 18px; background: var(--surface); padding: 18px; font-size: 20px; font-weight: 700;
  box-shadow: inset 0 0 0 1.5px var(--line); outline: none; }
.field:focus { box-shadow: inset 0 0 0 2px var(--a2); }
textarea.field { font-size: 17px; font-weight: 500; min-height: 150px; resize: none; line-height: 1.4; }
.counter { text-align: right; color: var(--hint); font-size: 13px; margin-top: 6px; }
.geo-btn { width: 100%; margin-bottom: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.or { text-align: center; color: var(--hint); font-size: 13px; margin: 6px 0 12px; }
.found { margin-top: 12px; padding: 14px 16px; border-radius: 16px; background: rgba(51, 214, 159, .12); color: var(--ok); font-weight: 700; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 0; border-radius: 999px; padding: 10px 15px; background: var(--surface); font-size: 15px; font-weight: 700;
  box-shadow: inset 0 0 0 1.5px var(--line); transition: transform 90ms; }
.chip:active { transform: scale(.95); }
.chip.on { background: var(--grad); box-shadow: none; }
.chip-row { display: flex; gap: 8px; overflow-x: auto; margin: 0 -20px 14px; padding: 0 20px; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }
.chip-row .chip { flex: none; }
.pick-count { color: var(--hint); font-size: 14px; margin: 14px 0 0; }

.facts { display: grid; gap: 10px; }
.fact { display: flex; flex-direction: column; gap: 6px; }
.fact small { font-size: 13px; font-weight: 800; color: var(--hint); }
.fact.is-lie small { color: var(--a1); }
.fact .field { font-size: 16px; font-weight: 600; padding: 15px; }
.lie-btn { flex: none; border: 0; border-radius: 16px; width: 74px; background: var(--surface); color: var(--hint); font-size: 13px; font-weight: 800;
  box-shadow: inset 0 0 0 1.5px var(--line); }
.lie-btn.on { background: var(--grad); color: #fff; box-shadow: none; }

.slots { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; aspect-ratio: 1.15; }
.slot { position: relative; border: 0; border-radius: 20px; background: var(--surface); overflow: hidden; padding: 0;
  box-shadow: inset 0 0 0 1.5px var(--line); display: grid; place-items: center; color: var(--hint); }
.slot:first-child { grid-row: span 2; }
.slot img, .slot video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slot .plus { width: 42px; height: 42px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: #fff; }
.slot .main { position: absolute; left: 10px; bottom: 10px; font-size: 12px; font-weight: 800; padding: 4px 9px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; }
.slot .rm { position: absolute; right: 8px; top: 8px; width: 30px; height: 30px; border-radius: 50%; background: rgba(0, 0, 0, .6); display: grid; place-items: center; color: #fff; }
.slot .rm svg { width: 16px; height: 16px; }
.slot .spin { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .45); }
.spin i { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .25); border-top-color: #fff; animation: rot .8s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }

.preview { height: min(62vh, 560px); border-radius: 24px; overflow: hidden; position: relative; }

/* ---------- лента ---------- */
.feed { position: fixed; inset: 0 0 calc(var(--tabs) + var(--safe-b)) 0; }
.stage { position: absolute; inset: 0; overflow: hidden; touch-action: none; }
.card { position: absolute; inset: 0; background: #000; overflow: hidden; will-change: transform;
  transition: transform .32s cubic-bezier(.2, .8, .2, 1), opacity .32s; }
.media { position: absolute; inset: 0; }
.media img, .media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .2s; }
.media .on { opacity: 1; }
.segs { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 4px; z-index: 2; }
.segs i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .3); }
.segs i.on { background: #fff; }
.shade { position: absolute; left: 0; right: 0; bottom: 0; height: 62%; pointer-events: none;
  background: linear-gradient(transparent, rgba(0, 0, 0, .55) 40%, rgba(0, 0, 0, .9)); }
.info { position: absolute; left: 16px; right: 84px; bottom: 18px; z-index: 2; }
.info.wide { right: 16px; }
.info h2 { margin: 0; font-size: 30px; font-weight: 900; letter-spacing: -.5px; line-height: 1.05; }
.info h2 span { font-weight: 500; opacity: .9; }
.info .where { margin-top: 4px; color: rgba(255, 255, 255, .8); font-size: 15px; font-weight: 600; }
.info .goal { display: inline-block; margin-top: 10px; padding: 5px 11px; border-radius: 999px; font-size: 13px; font-weight: 800;
  background: rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.info .about { margin: 10px 0 0; font-size: 15px; line-height: 1.35; color: rgba(255, 255, 255, .92);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.info .about.open { -webkit-line-clamp: unset; }
.info .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.info .tags span { padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; background: rgba(255, 255, 255, .12); }
.info .tags span.shared { background: var(--grad); }
.game-pill { margin-top: 12px; border: 0; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 14px;
  background: rgba(255, 255, 255, .95); color: #111; font-size: 14px; font-weight: 800; }
.game-pill.done { background: rgba(255, 255, 255, .16); color: #fff; }
.liked-you { position: absolute; top: 24px; left: 12px; right: 12px; z-index: 3; padding: 12px 14px; border-radius: 18px;
  background: var(--grad); font-weight: 800; font-size: 15px; box-shadow: 0 10px 30px -10px var(--a1); animation: drop .4s cubic-bezier(.2, 1.3, .4, 1); }
.liked-you p { margin: 4px 0 0; font-weight: 500; }
@keyframes drop { from { transform: translateY(-20px); opacity: 0; } }

.rail { position: absolute; right: 10px; bottom: 22px; z-index: 3; display: flex; flex-direction: column; gap: 16px; align-items: center; }
.rail button { border: 0; background: none; color: #fff; display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 11px; font-weight: 700; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.rail .ring { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: transform 90ms; }
.rail button:active .ring { transform: scale(.88); }
.rail .like .ring { width: 62px; height: 62px; background: var(--grad); box-shadow: 0 8px 24px -6px var(--a1); }
.rail .like svg { width: 30px; height: 30px; fill: #fff; stroke: none; }
.mute { position: absolute; top: 24px; right: 12px; z-index: 3; }

.burst { position: fixed; left: 50%; top: 45%; z-index: 40; pointer-events: none; transform: translate(-50%, -50%); }
.burst svg { width: 120px; height: 120px; fill: #fff; stroke: none; filter: drop-shadow(0 0 20px var(--a1)); animation: burst .7s ease-out forwards; }
@keyframes burst { 0% { transform: scale(.3) rotate(-12deg); opacity: 0; } 25% { transform: scale(1.15) rotate(6deg); opacity: 1; }
  60% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.4) translateY(-60px); opacity: 0; } }

.empty { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 30px; text-align: center; }
.empty h2 { font-size: 28px; font-weight: 900; margin: 0 0 8px; }
.empty p { color: var(--hint); margin: 0 0 22px; line-height: 1.4; }
.swipe-hint { position: absolute; left: 50%; bottom: 120px; transform: translateX(-50%); z-index: 4; padding: 10px 16px; border-radius: 999px;
  background: rgba(0, 0, 0, .6); font-size: 14px; font-weight: 700; white-space: nowrap; animation: nudge 1.4s ease-in-out 3; pointer-events: none; }
@keyframes nudge { 50% { transform: translate(-50%, -14px); } }

/* ---------- своя анкета ---------- */
.mine-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.mine-head h1 { margin: 0; font-size: 28px; font-weight: 900; }
.mine-card { height: min(58vh, 540px); border-radius: 24px; overflow: hidden; position: relative; margin-bottom: 14px; }
.mine-card .card, .preview .card { transition: none; }
.fine { color: var(--hint); font-size: 13px; text-align: center; margin: 12px 0 0; }
.toggle { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--hint); }
.toggle input { display: none; }
.toggle span { width: 46px; height: 28px; border-radius: 14px; background: var(--surface2); position: relative; transition: background .2s; }
.toggle span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; }
.toggle input:checked + span { background: var(--ok); }
.toggle input:checked + span::after { transform: translateX(18px); }
.toggle em { font-style: normal; }

/* ---------- вкладки ---------- */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; height: calc(var(--tabs) + var(--safe-b)); padding-bottom: var(--safe-b);
  display: flex; background: rgba(11, 11, 16, .96); border-top: 1px solid var(--line); z-index: 10; }
.tabs button { flex: 1; border: 0; background: none; color: var(--hint); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 11px; font-weight: 700; }
.tabs button.on { color: var(--text); }

/* ---------- шторка, совпадение, тост ---------- */
.sheet { position: fixed; inset: 0; z-index: 30; background: rgba(0, 0, 0, .55); display: flex; align-items: flex-end; animation: fade .2s; }
.sheet-card { width: 100%; max-height: 86vh; overflow-y: auto; background: var(--surface); border-radius: 26px 26px 0 0;
  padding: 10px 18px calc(18px + var(--safe-b)); animation: rise .28s cubic-bezier(.2, .8, .2, 1); }
.grip { width: 40px; height: 5px; border-radius: 3px; background: var(--surface2); margin: 0 auto 14px; }
.sheet h3 { margin: 0 0 6px; font-size: 22px; font-weight: 900; }
.sheet p { color: var(--hint); margin: 0 0 16px; line-height: 1.4; }
.sheet .opt { background: var(--surface2); margin-bottom: 8px; }
.sheet .opt.right { box-shadow: inset 0 0 0 2px var(--ok); }
.sheet .opt.wrong { box-shadow: inset 0 0 0 2px var(--a1); }
.sheet .opt em { margin-left: auto; font-style: normal; font-size: 13px; font-weight: 800; color: var(--hint); }
.sheet textarea.field { background: var(--surface2); min-height: 110px; }
.sheet .btn { width: 100%; margin-top: 10px; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(40px); opacity: 0; } }

.match { position: fixed; inset: 0; z-index: 35; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px;
  background: radial-gradient(circle at 50% 30%, rgba(255, 45, 111, .45), rgba(11, 11, 16, .97) 60%); animation: fade .3s; text-align: center; }
.match .ph { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px #fff, 0 0 60px var(--a1); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.05); } }
.match h2 { font-size: 40px; font-weight: 900; margin: 26px 0 6px; letter-spacing: -1px; }
.match p { color: rgba(255, 255, 255, .8); margin: 0 0 26px; }
.match .btn { width: 100%; max-width: 340px; margin-top: 10px; }

.toast { position: fixed; left: 50%; top: calc(16px + env(safe-area-inset-top)); transform: translateX(-50%); z-index: 50; max-width: 90vw;
  padding: 12px 16px; border-radius: 16px; background: #fff; color: #111; font-size: 14px; font-weight: 700; text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4); animation: drop .3s ease; }

/* ---------- страницы: симпатии, анкета, настройки ---------- */
.page { position: fixed; inset: 0 0 calc(var(--tabs) + var(--safe-b)) 0; overflow-y: auto; overflow-x: hidden; padding: 16px 16px 24px; }
/* вкладки Движа и админки во всю ширину страницы: отступ страницы 16 px, а у .chip-row 20, и вбок вылезало 4 px (2026-11-15) */
.page .adm-tabs { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
.page.full { bottom: 0; padding-bottom: calc(24px + var(--safe-b)); }
.page-title { margin: 0 0 14px; font-size: 28px; font-weight: 900; letter-spacing: -.5px; }
.mine-head .page-title { margin: 0; }
.tabs button { position: relative; }
.badge { position: absolute; top: 6px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--a1); color: #fff; font-size: 11px; font-weight: 800; font-style: normal; display: grid; place-items: center; }

.likes-banner { display: flex; align-items: center; gap: 14px; width: 100%; border: 0; text-align: left; padding: 16px; border-radius: 22px;
  background: var(--grad); color: #fff; margin-bottom: 18px; box-shadow: 0 12px 30px -14px var(--a1); }
.likes-banner .n { width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .22); display: grid; place-items: center;
  font-size: 20px; font-weight: 900; flex: none; }
.likes-banner b { display: block; font-size: 17px; }
.likes-banner small { opacity: .85; font-size: 13px; }
.section-label { color: var(--hint); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; margin: 6px 0 10px; }
.match-row { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; background: none; text-align: left; padding: 10px 0; }
.match-row + .match-row { border-top: 1px solid var(--line); }
.ava { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; background: var(--surface2);
  display: grid; place-items: center; font-weight: 900; font-size: 22px; color: var(--hint); }
.ava.ring { box-shadow: 0 0 0 2.5px var(--bg), 0 0 0 4.5px var(--a1); }
.match-row .mid { flex: 1; min-width: 0; }
.match-row b { display: block; font-size: 16px; }
.match-row small { display: block; color: var(--hint); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.match-row small.new { color: var(--text); font-weight: 700; }
.match-row .cnt { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--a1); color: #fff; font-size: 12px;
  font-weight: 800; display: grid; place-items: center; }
.fresh { display: flex; gap: 12px; overflow-x: auto; margin: 0 -16px 18px; padding: 4px 16px; scrollbar-width: none; }
.fresh::-webkit-scrollbar { display: none; }
.fresh button { border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; flex: none; width: 66px; }
.fresh .ava { width: 62px; height: 62px; }
.fresh span { max-width: 66px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- чат ---------- */
.chat { position: fixed; left: 0; right: 0; top: 0; height: var(--tg-viewport-height, 100vh); display: flex; flex-direction: column; background: var(--bg); z-index: 20; }
.chat-top { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.chat-peer { flex: 1; display: flex; align-items: center; gap: 10px; border: 0; background: none; text-align: left; min-width: 0; }
.chat-peer .ava { width: 40px; height: 40px; font-size: 16px; }
.chat-peer b { font-size: 17px; }
.chat-peer small { display: block; color: var(--hint); font-size: 12px; }
.chat-list { flex: 1; overflow-y: auto; padding: 14px 12px 6px; display: flex; flex-direction: column; gap: 4px; }
.bubble { max-width: 78%; padding: 9px 13px; border-radius: 20px; font-size: 16px; line-height: 1.35; white-space: pre-wrap; word-wrap: break-word;
  background: var(--surface2); align-self: flex-start; border-bottom-left-radius: 6px; animation: pop .18s ease; }
.bubble.mine { align-self: flex-end; background: var(--grad); color: #fff; border-bottom-left-radius: 20px; border-bottom-right-radius: 6px; }
.bubble .meta { display: block; text-align: right; font-size: 11px; opacity: .7; margin-top: 2px; }
.day { align-self: center; color: var(--hint); font-size: 12px; font-weight: 700; margin: 10px 0 6px; }
@keyframes pop { from { transform: scale(.92); opacity: 0; } }
.chat-empty { margin: auto; text-align: center; color: var(--hint); padding: 30px; }
.chat-empty .ava { width: 96px; height: 96px; margin: 0 auto 14px; font-size: 36px; }
.chat-empty b { display: block; color: var(--text); font-size: 20px; margin-bottom: 6px; }
.icebreaker-box { margin-top: 18px; width: 100%; text-align: left; background: var(--surface2); border-radius: 18px; padding: 14px; border: 1px solid var(--line); }
.ib-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.ib-tag { font-size: 14px; font-weight: 800; color: var(--text); }
.ib-shuffle { border: 0; background: none; color: var(--a1); font-size: 13px; font-weight: 700; cursor: pointer; padding: 4px 8px; border-radius: 8px; }
.ib-hint { display: block; color: var(--hint); font-size: 12px; margin-bottom: 10px; }
.ib-list { display: flex; flex-direction: column; gap: 8px; }
.ib-card { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; text-align: left; padding: 10px 12px; border-radius: 12px; border: 0; background: var(--surface); color: var(--text); font-size: 14px; line-height: 1.3; cursor: pointer; transition: transform .12s ease, background .12s ease; }
.ib-card:active { transform: scale(.98); background: var(--surface2); }
.ib-text { flex: 1; min-width: 0; }
.ib-go { color: var(--a1); font-weight: 900; font-size: 14px; flex: none; }
.ib-opt b { font-size: 14px; line-height: 1.3; }
.quick-notes { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }
.react-preview-photo { max-width: 140px; aspect-ratio: 3/4; border-radius: 12px; overflow: hidden; margin: 8px auto; box-shadow: 0 4px 12px rgba(0, 0, 0, .3); }
.react-preview-photo img, .react-preview-photo video { width: 100%; height: 100%; object-fit: cover; }
.chat-starters { display: flex; gap: 8px; overflow-x: auto; padding: 0 12px 8px; scrollbar-width: none; }
.chat-starters::-webkit-scrollbar { display: none; }
.chat-starters .chip { flex: none; }
.chat-input { display: flex; align-items: flex-end; gap: 8px; padding: 8px 10px calc(8px + var(--safe-b)); border-top: 1px solid var(--line); }
.chat-input textarea { flex: 1; resize: none; border: 0; outline: none; border-radius: 22px; background: var(--surface); padding: 11px 16px;
  font-size: 16px; max-height: 120px; line-height: 1.3; }
.chat-input .send { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--grad); color: #fff; display: grid; place-items: center; flex: none; }

/* ---------- анкета: статистика, переключатели ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.stat { background: var(--surface); border-radius: 18px; padding: 12px; text-align: center; }
.stat b { display: block; font-size: 24px; font-weight: 900; }
.stat small { color: var(--hint); font-size: 12px; font-weight: 700; }
.tip { grid-column: 1 / -1; background: rgba(138, 92, 255, .14); color: #d8ccff; border-radius: 16px; padding: 12px 14px; font-size: 14px; line-height: 1.35; }
.row-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 18px;
  background: var(--surface); margin-bottom: 12px; }
.row-toggle b { display: block; font-size: 16px; }
.row-toggle small { display: block; color: var(--hint); font-size: 13px; margin-top: 2px; }
.set-group { background: var(--surface); border-radius: 20px; padding: 6px 16px; margin-bottom: 14px; }
.set-group .row-toggle { background: none; padding: 12px 0; margin: 0; border-radius: 0; }
.set-group .row-toggle + .row-toggle { border-top: 1px solid var(--line); }
.set-group h3 { margin: 10px 0 4px; font-size: 13px; color: var(--hint); text-transform: uppercase; letter-spacing: .6px; }
.range { display: flex; align-items: center; gap: 10px; padding: 8px 0 12px; }
.stepper { display: flex; align-items: center; gap: 4px; background: var(--surface2); border-radius: 14px; padding: 4px; }
.stepper button { width: 36px; height: 36px; border: 0; border-radius: 10px; background: none; font-size: 22px; font-weight: 700; }
.stepper b { min-width: 34px; text-align: center; font-size: 20px; }
.set-group p { color: var(--hint); font-size: 14px; line-height: 1.45; margin: 8px 0 12px; white-space: pre-line; }
.set-group textarea.field { background: var(--surface2); min-height: 90px; margin: 6px 0 10px; }
.btn.small { padding: 10px 14px; font-size: 15px; }
.btn.danger { background: rgba(255, 45, 111, .14); color: #ff6f98; width: 100%; }
.link-btn { border: 0; background: none; color: var(--a2); font-weight: 800; padding: 0; font-size: 15px; }

.empty.static { position: static; padding: 50px 10px; }
.page > .tip { margin-bottom: 14px; }

/* ================= новые функции ================= */
.gap { height: 10px; }
.vwrap { display: inline-flex; vertical-align: middle; margin-left: 6px; }
.vbadge { width: 22px; height: 22px; fill: #3aa0ff; stroke: #fff; stroke-width: 2.2; }
.match-row .vbadge, .chat-peer .vbadge, .duo-member .vbadge { width: 16px; height: 16px; }
.dot-online { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); margin-right: 5px; box-shadow: 0 0 8px var(--ok); }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.info .goal.free { background: rgba(51, 214, 159, .85); color: #04241a; }
.status-pill { position: absolute; left: 12px; top: 24px; z-index: 3; max-width: 70%; padding: 7px 12px; border-radius: 14px;
  background: rgba(255, 255, 255, .92); color: #111; font-size: 13px; font-weight: 800; box-shadow: 0 6px 20px rgba(0, 0, 0, .3); }
.card:has(.liked-you) .status-pill { top: auto; bottom: calc(100% - 150px); }
.music { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .85); }
.music svg { width: 16px; height: 16px; }
.voice-btn { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; border: 0; border-radius: 999px; padding: 8px 14px 8px 10px;
  background: rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: 13px; font-weight: 800; }
.voice-btn svg { width: 18px; height: 18px; fill: currentColor; }
.bubble .voice-btn { margin: 0; background: rgba(0, 0, 0, .18); }
.prompt-mini { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(0, 0, 0, .35); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); cursor: pointer; transition: background .15s ease; }
.prompt-mini:active { background: rgba(0, 0, 0, .5); }
.prompt-mini .pm-text { min-width: 0; flex: 1; }
.prompt-mini b { display: block; font-size: 12px; color: rgba(255, 255, 255, .7); }
.prompt-mini span { font-size: 15px; font-weight: 700; }
.prompt-mini .pm-heart { width: 34px; height: 34px; border-radius: 50%; border: 0; display: grid; place-items: center; flex: none; background: rgba(255, 255, 255, .16); color: #fff; cursor: pointer; }
.prompt-mini .pm-heart svg { width: 18px; height: 18px; fill: #ff2d6f; stroke: none; }
.prompt-mini.answer { border-left: 3px solid #ff2d6f; }
.media-react-btn { position: absolute; right: 14px; bottom: 84px; z-index: 5; width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .45); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .4); transition: transform .15s ease, background .15s ease; cursor: pointer; }
.media-react-btn:active { transform: scale(.9); background: var(--grad); }
.media-react-btn svg { width: 22px; height: 22px; fill: #ff2d6f; stroke: none; }
.vibe-card { margin-top: 10px; padding: 10px 12px; border-radius: 14px; background: linear-gradient(135deg, rgba(255, 45, 111, .15), rgba(123, 77, 255, .25)); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .12); }
.vibe-title { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; color: #ffb8e0; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .5px; }
.vibe-ico svg { width: 14px; height: 14px; fill: #ff85c2; }
.vibe-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.vibe-chip { display: inline-block; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .2); font-size: 13px; font-weight: 700; color: #fff; }
.goal.blind-tag { background: linear-gradient(135deg, #7b4dff, #ff2d6f); color: #fff; font-weight: 800; }
.more-pill { margin: 10px 0 0 8px; border: 0; padding: 9px 14px; border-radius: 14px; background: rgba(255, 255, 255, .16); font-size: 14px; font-weight: 800; }
.liked-you.super { background: linear-gradient(120deg, #ffb800, #ff2d6f); }
.liked-you.static { position: static; margin-bottom: 12px; animation: none; }
.rail .super .ring { background: linear-gradient(135deg, #ffcf3d, #ff8a00); position: relative; }
.rail .super svg { fill: #fff; stroke: none; }
.cnt-dot { position: absolute; top: -2px; right: -2px; min-width: 18px; height: 18px; border-radius: 9px; background: #fff; color: #111;
  font-size: 11px; font-weight: 900; font-style: normal; display: grid; place-items: center; padding: 0 4px; }

.detail-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 6px 0 12px; }
.dp { position: relative; aspect-ratio: 3/4; border-radius: 14px; overflow: hidden; background: var(--surface2); }
.dp img, .dp video { width: 100%; height: 100%; object-fit: cover; }
.react-heart { position: absolute; right: 6px; bottom: 6px; width: 36px; height: 36px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: var(--grad); color: #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, .35); }
.react-heart svg { width: 18px; height: 18px; fill: #fff; stroke: none; }
.detail-block { position: relative; background: var(--surface2); border-radius: 16px; padding: 12px 52px 12px 14px; margin-bottom: 8px; }
.detail-block small { color: var(--hint); font-weight: 700; font-size: 12px; }
.detail-block p { margin: 4px 0 0; color: var(--text); font-size: 16px; line-height: 1.35; }
.detail-block.row { display: flex; align-items: center; gap: 10px; }
.detail-block.row .voice-btn { margin: 0; background: var(--surface); }
.detail-block .react-heart { top: 50%; bottom: auto; transform: translateY(-50%); right: 10px; }

.feed-top { position: absolute; top: 10px; left: 12px; right: 12px; z-index: 6; display: flex; gap: 8px; pointer-events: none;
  overflow-x: auto; scrollbar-width: none; }
.feed-top::-webkit-scrollbar { display: none; }
/* прижаты вправо, но если кнопок больше, чем влезает, лишние уходят вправо и листаются, а не пропадают за левым краем */
.feed-top > :first-child { margin-left: auto; }
.top-pill { pointer-events: auto; display: inline-flex; align-items: center; gap: 6px; border: 0; padding: 8px 12px; border-radius: 999px;
  background: rgba(0, 0, 0, .45); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; font-size: 13px; font-weight: 800; position: relative; }
.top-pill svg { width: 18px; height: 18px; }
.top-pill.hot { background: var(--grad); }
.top-pill.on { background: var(--a2); }
.top-pill em { position: absolute; top: -4px; right: -4px; min-width: 16px; height: 16px; border-radius: 8px; background: #fff; color: #111;
  font-size: 10px; font-style: normal; font-weight: 900; display: grid; place-items: center; }
.feed .segs { top: 56px; }
.feed .liked-you { top: 58px; }
.feed .status-pill { top: 58px; }
.feed .mute { top: 58px; }
.picks { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 14px; }
.pick { border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; }
.pick .ava { width: 58px; height: 58px; box-shadow: 0 0 0 2.5px var(--surface), 0 0 0 4.5px var(--a1); }
.pick.done { opacity: .45; }
.pick small { color: var(--hint); font-size: 10px; text-align: center; }
.blind-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 24px; text-align: center; color: #fff;
  background: radial-gradient(circle at 50% 35%, var(--a1), #2a1f5c 70%); }
.blind-ph .blind-letter { font-size: 96px; font-weight: 900; line-height: 1; opacity: .9; }
.blind-ph b { font-size: 18px; }
.blind-ph small { font-size: 14px; opacity: .85; max-width: 260px; }
.blind-ph .blind-progress { display: flex; gap: 12px; margin-top: 8px; font-size: 13px; font-weight: 700; background: rgba(0, 0, 0, .35); padding: 6px 14px; border-radius: 999px; }
.blind-line { color: var(--a1); }
.pair-day { width: 100%; border: 0; display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px;
  margin-bottom: 14px; border-radius: 18px; background: var(--surface2, rgba(127,127,127,.12)); color: inherit; font: inherit; }
.pair-day .ava { width: 56px; height: 56px; flex: none; box-shadow: 0 0 0 2.5px var(--surface), 0 0 0 4.5px var(--a1); }
.pair-day div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pair-day b { font-size: 12px; color: var(--a1); text-transform: none; }
.pair-day span { font-weight: 700; }
.pair-day small { color: var(--hint); font-size: 12px; line-height: 1.3; }

.chat-reply { display: flex; align-items: center; gap: 8px; margin: 0 10px 6px; padding: 8px 12px; border-radius: 14px; background: var(--surface);
  border-left: 3px solid var(--a1); font-size: 14px; }
.chat-reply span { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--hint); }
.chat-reply button { border: 0; background: none; color: var(--hint); padding: 0; }
.chat-reply svg { width: 18px; height: 18px; }
.attach { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--surface); color: var(--text); display: grid; place-items: center; flex: none; }
.bubble .author { display: block; font-size: 12px; font-weight: 800; color: var(--a1); margin-bottom: 2px; }
.bubble .quote { font-size: 13px; padding: 4px 8px; border-left: 3px solid rgba(255, 255, 255, .6); background: rgba(0, 0, 0, .15);
  border-radius: 6px; margin-bottom: 4px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.photo-wrap { position: relative; width: 220px; max-width: 100%; aspect-ratio: 3/4; border-radius: 14px; overflow: hidden; }
.chat-photo { width: 100%; height: 100%; object-fit: cover; transition: filter .3s; }
.chat-photo.blur { filter: blur(22px) brightness(.8); transform: scale(1.1); }
.veil { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 12px; font-size: 13px; font-weight: 800; }
.bubble.k-photo, .bubble.k-game, .bubble.k-meet { padding: 6px; }
.warn { display: flex; gap: 6px; align-items: flex-start; font-size: 12px; font-weight: 700; background: rgba(255, 184, 0, .18); color: #ffd36a;
  border-radius: 10px; padding: 6px 8px; margin-bottom: 6px; white-space: normal; }
.warn svg { width: 16px; height: 16px; flex: none; }
.reacts { display: flex; gap: 4px; margin-top: 4px; }
.reacts span { font-size: 13px; background: rgba(0, 0, 0, .2); padding: 1px 7px; border-radius: 10px; }
.reacts span.on { background: rgba(255, 255, 255, .3); }
.react-row { display: flex; justify-content: space-between; gap: 6px; margin: 4px 0 14px; }
.react-row button { flex: 1; border: 0; font-size: 28px; padding: 10px 0; border-radius: 16px; background: var(--surface2); }
.react-row button.on { background: var(--grad); }
.opt-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; flex: none; color: #fff; }
.opt-ico svg { width: 22px; height: 22px; }
.game-card, .meet-card { min-width: 220px; padding: 8px; }
.game-card small, .meet-card small { display: block; font-size: 12px; font-weight: 800; opacity: .8; margin-bottom: 6px; }
.meet-card b { display: block; font-size: 17px; }
.meet-card .note { font-size: 12px; opacity: .85; margin: 6px 0 0; white-space: normal; }
.emoji-q { font-size: 34px; text-align: center; margin: 4px 0 8px; }
.game-opts { display: grid; gap: 6px; margin-top: 6px; }
.gopt { border: 0; border-radius: 12px; padding: 10px; font-size: 14px; font-weight: 800; background: rgba(255, 255, 255, .14); color: #fff; }
.bubble:not(.mine) .gopt { background: rgba(255, 255, 255, .08); }
.gopt.mine { box-shadow: inset 0 0 0 2px #fff; }
.gopt.theirs { box-shadow: inset 0 0 0 2px var(--a1); }
.gopt.mine.theirs { box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px var(--a1); }
.gopt.right { background: rgba(51, 214, 159, .6) !important; }
.gopt:disabled { opacity: 1; }
.reveal { margin: 8px 0 0; font-size: 14px; font-weight: 700; white-space: normal; }
.rec-wrap { display: grid; place-items: center; padding: 20px 0 10px; }
.rec-btn { width: 96px; height: 96px; border-radius: 50%; border: 0; background: var(--grad); color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 30px -10px var(--a1); }
.rec-btn svg { width: 40px; height: 40px; }
.rec-btn.on { animation: pulse 1s ease-in-out infinite; background: #ff2d4a; }
.ava-stack { display: flex; }
.ava-stack .ava { width: 40px; height: 40px; box-shadow: 0 0 0 2px var(--bg); font-size: 16px; }
.ava-stack .ava + .ava { margin-left: -12px; }
.match-row .ava-stack .ava { width: 44px; height: 44px; }
.ava-stack.big { justify-content: center; margin-bottom: 14px; }
.ava-stack.big .ava { width: 72px; height: 72px; }

.perks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.perk { border: 0; text-align: left; padding: 12px; border-radius: 18px; background: var(--surface); display: flex; flex-direction: column; gap: 2px; min-height: 92px; }
.perk i { width: 32px; height: 32px; border-radius: 10px; background: var(--surface2); display: grid; place-items: center; margin-bottom: 4px; }
.perk i svg { width: 18px; height: 18px; }
.perk b { font-size: 15px; }
.perk small { color: var(--hint); font-size: 12px; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.perk.on i { background: var(--grad); color: #fff; }
.streak { background: linear-gradient(120deg, rgba(255, 184, 0, .18), rgba(255, 45, 111, .18)); border-radius: 18px; padding: 12px 14px; margin-bottom: 10px; }
.streak b { display: block; font-size: 17px; }
.streak small { color: var(--hint); font-size: 13px; }
.gesture { font-size: 22px; font-weight: 900; text-align: center; padding: 22px 12px; border-radius: 18px; background: var(--surface2); margin-bottom: 12px; }
.linkbox { font-family: ui-monospace, Menlo, monospace; font-size: 13px; padding: 12px; border-radius: 14px; background: var(--surface2); word-break: break-all; margin-bottom: 6px; }
.share-img { width: 100%; border-radius: 18px; margin-bottom: 10px; }

.duo-banner { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; text-align: left; padding: 14px; border-radius: 20px;
  background: var(--surface); margin-bottom: 16px; box-shadow: inset 0 0 0 1.5px var(--line); }
.duo-banner i { width: 44px; height: 44px; border-radius: 14px; background: var(--grad); display: grid; place-items: center; color: #fff; flex: none; }
.duo-banner b { display: block; font-size: 16px; }
.duo-banner small { color: var(--hint); font-size: 13px; }
.duo-intro { text-align: center; padding: 30px 10px; }
.duo-intro h2 { font-size: 26px; font-weight: 900; margin: 12px 0 8px; }
.duo-intro p { color: var(--hint); line-height: 1.45; margin: 0 0 18px; }
.duo-intro .btn { margin-top: 8px; }
.big-ico { width: 80px; height: 80px; border-radius: 26px; background: var(--grad); display: inline-grid; place-items: center; color: #fff; }
.big-ico svg { width: 42px; height: 42px; }
.duo-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.duo-head span { flex: 1; }
.duo-head b { display: block; }
.duo-head small { color: var(--hint); }
.duo-card { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.duo-member { background: var(--surface); border-radius: 22px; padding: 14px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.duo-member .ava { width: 100%; height: auto; aspect-ratio: 3/4; border-radius: 16px; margin-bottom: 6px; }
.duo-member small { color: var(--hint); font-size: 12px; }
.duo-member .tags { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; margin-top: 4px; }
.duo-member .tags span { font-size: 11px; padding: 3px 8px; border-radius: 999px; background: var(--surface2); }
.duo-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }

.adm-item { background: var(--surface); border-radius: 18px; padding: 12px; margin-bottom: 10px; }
.adm-card { display: flex; gap: 10px; align-items: flex-start; }
.adm-card .ava { width: 52px; height: 52px; border-radius: 14px; }
.adm-card > div { flex: 1; min-width: 0; }
.adm-card small { color: var(--hint); display: block; }
.adm-card p { margin: 4px 0 0; font-size: 13px; color: var(--hint); }
.adm-reason { margin-top: 8px; padding: 8px 10px; border-radius: 12px; background: var(--surface2); }
.adm-reason small { display: block; color: var(--hint); font-size: 12px; margin-top: 3px; }
.adm-selfie { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.adm-selfie img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 14px; }
.adm-item > small { display: block; color: var(--hint); margin: 4px 0 8px; word-break: break-all; }

.prompts-edit .prompt-edit { background: var(--surface); border-radius: 18px; padding: 12px; margin-bottom: 10px; }
.pe-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.pe-head b { font-size: 15px; }
.rm-mini { border: 0; background: none; color: var(--hint); padding: 0; }
.rm-mini svg { width: 18px; height: 18px; }
.prompt-edit textarea.field { min-height: 70px; background: var(--surface2); }
textarea.field.small { min-height: 80px; }
.chip.preset { background: linear-gradient(120deg, rgba(255, 45, 111, .2), rgba(138, 92, 255, .2)); }

.page.full .mine-head .page-title { font-size: 22px; text-align: center; flex: 1; }

/* ================= волна 2 ================= */
:root { --top: calc(var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px)); }
.wz-top { padding-top: calc(12px + var(--top)); }
.page { padding-top: calc(16px + var(--top)); }
.chat-top { padding-top: calc(10px + var(--top)); }
.feed-top { top: calc(10px + var(--top)); }
.feed .segs { top: calc(56px + var(--top)); }
.feed .liked-you, .feed .status-pill, .feed .mute { top: calc(58px + var(--top)); }
.toast { top: calc(16px + var(--top)); }

.info .goal.compat { background: rgba(138, 92, 255, .85); }
.fresh .expires { color: #ffb800; font-size: 11px; font-weight: 800; }
.streak-tag { display: inline-flex; align-items: center; gap: 2px; color: #ff8a00; font-size: 13px; font-weight: 900; margin-right: 6px; }
.streak-tag svg { width: 16px; height: 16px; fill: #ff8a00; stroke: none; }
.opening-card { margin-top: 16px; padding: 14px; border-radius: 18px; background: var(--surface); text-align: left; color: var(--text); }
.opening-card small { color: var(--hint); font-weight: 700; display: block; }
.opening-card b { display: block; font-size: 17px; margin: 4px 0 10px; }
.circle-wrap { position: relative; width: 200px; height: 200px; border-radius: 50%; overflow: hidden; }
.circle { width: 100%; height: 100%; object-fit: cover; transition: filter .3s; }
.circle.blur { filter: blur(18px) brightness(.8); transform: scale(1.1); }
.circle-wrap .veil { color: #fff; }
.circle-wrap .veil svg { width: 44px; height: 44px; fill: #fff; stroke: none; }
.bubble.k-video { padding: 4px; background: transparent !important; }
.event-card { background: var(--surface); border-radius: 22px; padding: 14px; margin-bottom: 10px; }
.ev-top { display: flex; align-items: center; justify-content: space-between; }
.ev-top small { color: var(--hint); font-weight: 700; }
.chip.small { padding: 5px 10px; font-size: 12px; }
.ev-title { display: block; font-size: 19px; margin: 10px 0 4px; }
.ev-place { display: flex; align-items: center; gap: 6px; color: var(--hint); font-size: 14px; }
.ev-place svg { width: 16px; height: 16px; flex: none; }
.ev-people { display: flex; align-items: center; gap: 10px; margin: 12px 0; }
.ev-people .ava { width: 30px; height: 30px; font-size: 12px; }
.ev-people small { color: var(--hint); }
.ev-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.quiz-progress { color: var(--hint); font-weight: 800; font-size: 13px; margin-bottom: 4px; }
.quiz-opt { justify-content: center; text-align: center; padding: 22px; }
.quiz-opt b { font-size: 19px; }
.row2 { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
select.field { appearance: none; -webkit-appearance: none; font-size: 17px; }
.ask-item textarea { margin: 8px 0; }

.top-pill { white-space: nowrap; flex: none; }

/* ================= модерация: вкладки, аналитика, журнал ================= */
.adm-tabs { margin-bottom: 14px; }
.chart { background: var(--surface); border-radius: 18px; padding: 12px 14px; margin-bottom: 10px; }
.chart-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.chart-head small { color: var(--hint); }
.bars { width: 100%; height: 70px; display: block; }
.funnel-row { position: relative; display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; margin-bottom: 6px;
  border-radius: 12px; background: var(--surface); overflow: hidden; font-size: 14px; }
.funnel-bar { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(120deg, rgba(255, 45, 111, .35), rgba(138, 92, 255, .35)); }
.funnel-row span, .funnel-row b { position: relative; }
.cohorts { background: var(--surface); border-radius: 16px; padding: 6px 12px; margin-bottom: 12px; }
.coh { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr; gap: 6px; padding: 7px 0; font-size: 13px; }
.coh + .coh { border-top: 1px solid var(--line); }
.coh.head { color: var(--hint); font-weight: 800; font-size: 11px; text-transform: uppercase; }
.log-row { background: var(--surface); border-radius: 14px; padding: 10px 12px; margin-bottom: 6px; display: flex; flex-direction: column; gap: 2px; }
.log-row small { color: var(--hint); font-size: 12px; }

/* ================= клубы, студент, помощник ================= */
.club-row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--surface); border-radius: 16px; margin-bottom: 6px; }
.club-row .mid { flex: 1; min-width: 0; }
.club-row small { display: block; color: var(--hint); font-size: 12px; }
.info .goal.uni { background: rgba(58, 160, 255, .85); }
.coach { margin-bottom: 12px; }
.coach-head { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; text-align: left; padding: 12px 14px; border-radius: 18px;
  background: var(--surface); }
.coach-head b { display: block; font-size: 16px; }
.coach-head small { color: var(--hint); font-size: 13px; }
.coach-ring { width: 52px; height: 52px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(var(--a1) calc(var(--p) * 1%), var(--surface2) 0); }
.coach-ring b { width: 42px; height: 42px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-size: 13px; }
.coach-list { background: var(--surface); border-radius: 0 0 18px 18px; margin-top: -8px; padding: 12px 14px 8px; }
.coach-item { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; padding: 5px 0; }
.coach-item i { flex: none; width: 20px; height: 20px; color: #ff6f98; }
.coach-item i svg { width: 20px; height: 20px; }
.coach-item.ok { color: var(--hint); }
.coach-item.ok i { color: var(--ok); }

/* доступность: видимый фокус с клавиатуры и меньше движения для тех, кому оно мешает */
button:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--a2); outline-offset: 2px; }
.chat-input textarea:focus-visible { box-shadow: inset 0 0 0 2px var(--a2); }
button[aria-busy="true"] { opacity: .6; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* рост и образ жизни в карточке, общая музыка */
.card .life { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.card .life span { font-size: 12.5px; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.14); }
.card .music.shared { color: #fff; font-weight: 600; }

/* опрос в чате: полоска показывает долю голосов после твоего голоса */
.poll-card { display: flex; flex-direction: column; gap: 6px; min-width: 210px; }
.poll-card > b { font-size: 15px; }
.poll-opt { position: relative; display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: inherit; font: inherit; text-align: left; overflow: hidden; }
.poll-opt::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--share, 0%); background: rgba(138,92,255,.35); transition: width .3s; }
.poll-opt > * { position: relative; }
.poll-opt.mine { border-color: var(--a2); }
.poll-total { opacity: .7; }

/* свайп по жалобе в модерации */
.adm-item { transition: transform .2s ease, background .2s; }
.adm-item.sw-left { background: rgba(51, 214, 159, .14); }
.adm-item.sw-right { background: rgba(255, 140, 0, .16); }

/* 2+1 в браузере: экран входа (web/src/01-web.js) */
.login .login-btn { min-height: 48px; margin: 22px auto 6px; }
.login .muted a { color: inherit; opacity: .7; }
.login .login-pin { font-size: 44px; font-weight: 900; letter-spacing: 6px; margin: 4px 0 22px; }
.login .btn.small { margin: 0 auto; }

/* ================= «Неформал»: глитч и Windows 98, как его обои (тема nf, по умолчанию) ================= */
/* шрифты свои (CSP не пускает чужие): Press Start 2P и IBM Plex Mono, оба OFL */
/* пиксельный шрифт: block, чтобы «2+1» и меню не мелькали обычным шрифтом, пока он грузится (он маленький и грузится сразу) */
@font-face { font-family: "NF Pixel"; src: url(nf-px-cyr.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; font-display: block; }
@font-face { font-family: "NF Pixel"; src: url(nf-px-lat.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; font-display: block; }
@font-face { font-family: "NF Mono"; font-weight: 400; src: url(nf-plex-400-cyr.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; font-display: swap; }
@font-face { font-family: "NF Mono"; font-weight: 400; src: url(nf-plex-400-lat.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212; font-display: swap; }
@font-face { font-family: "NF Mono"; font-weight: 600 900; src: url(nf-plex-600-cyr.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; font-display: swap; }
@font-face { font-family: "NF Mono"; font-weight: 600 900; src: url(nf-plex-600-lat.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212; font-display: swap; }

html[data-theme="nf"] {
  --px: "NF Pixel", ui-monospace, monospace; --win: #c3c7cb; --win-d: #7b7f86;
  --bevel: inset -1px -1px 0 #000, inset 1px 1px 0 #fff, inset -2px -2px 0 var(--win-d), inset 2px 2px 0 #dfe0e3;
  --sunken: inset 1px 1px 0 var(--win-d), inset -1px -1px 0 #fff, inset 2px 2px 0 #000;
  --grad: linear-gradient(90deg, var(--navy), var(--navy2));
}
/* палитры тем: весь интерфейс в цвет фона (его просьба 2026-11-15). По умолчанию «Чёрно-белая» (data-wall нет или bw) */
html[data-theme="nf"] {
  --bg: #050505; --surface: #111111; --surface2: #1c1c1c; --line: #3a3a3a; --text: #ececec; --hint: #9b9b9b;
  --a1: #ffffff; --a2: #cfcfcf; --ok: #e6e6e6; --cyan: #e6e6e6; --mag: #ffffff;
  --navy: #1e1e1e; --navy2: #5c5c5c; --navy-hi: #8a8a8a; --navy-lo: #000000;
  --cyan-rgb: 230, 230, 230; --mag-rgb: 255, 255, 255; --blue-rgb: 120, 120, 120; --dim-rgb: 0, 0, 0;
}
/* «Синяя», «Окна 98», «Глитч»: исходная палитра «Неформала» (синий, бирюза, розовый) */
html[data-theme="nf"][data-wall="blue"], html[data-theme="nf"][data-wall="win98"], html[data-theme="nf"][data-wall="glitch"] {
  --bg: #03040b; --surface: #0b1040; --surface2: #141a5a; --line: #27307a; --text: #dfe6ff; --hint: #8f9bd6;
  --a1: #ff3df2; --a2: #5ff2ff; --ok: #39ff9c; --cyan: #5ff2ff; --mag: #ff3df2;
  --navy: #000a8c; --navy2: #1084d0; --navy-hi: #6a7bff; --navy-lo: #000050;
  --cyan-rgb: 95, 242, 255; --mag-rgb: 255, 61, 242; --blue-rgb: 29, 44, 255; --dim-rgb: 0, 4, 40;
}
/* «Зелёный»: матричный зелёный с салатовым */
html[data-theme="nf"][data-wall="green"] {
  --bg: #020a05; --surface: #06200f; --surface2: #0b3018; --line: #1d5a33; --text: #d8ffe6; --hint: #86c29d;
  --a1: #39ff9c; --a2: #b4ff5a; --ok: #39ff9c; --cyan: #39ff9c; --mag: #b4ff5a;
  --navy: #06401f; --navy2: #1f9a52; --navy-hi: #5fe39a; --navy-lo: #002a10;
  --cyan-rgb: 57, 255, 156; --mag-rgb: 180, 255, 90; --blue-rgb: 30, 200, 90; --dim-rgb: 0, 18, 6;
}
html[data-theme="nf"], html[data-theme="nf"] body { font-family: "NF Mono", ui-monospace, Menlo, monospace; }
/* полоски старого монитора поверх всего */
html[data-theme="nf"] body::after { content: ""; position: fixed; inset: 0; z-index: 200; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .22) 0 1px, transparent 1px 3px); }
/* экран входа без полосок: они ложились на кнопку Telegram (чужой iframe) и выглядели как баг (2026-11-16) */
html[data-theme="nf"] body:has(#boot > .login)::after { display: none; }

/* заголовки: пиксельный шрифт с цветным сдвигом */
html[data-theme="nf"] .logo-big { font-family: var(--px); font-size: 44px; letter-spacing: 0; text-shadow: 3px 0 var(--mag), -3px 0 var(--cyan); }
html[data-theme="nf"] .logo-big span { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--mag); }
html[data-theme="nf"] .page-title, html[data-theme="nf"] .mine-head .page-title {
  font-family: var(--px); font-size: 13px; font-weight: 400; letter-spacing: 0; line-height: 1; color: #fff;
  background: linear-gradient(90deg, var(--navy), var(--navy2)); padding: 7px 8px; margin: 0 0 14px; flex: 1;
  box-shadow: 0 0 0 3px var(--win), 0 0 0 4px #000; }
/* заголовки страниц только по-английски, как имя файла в заголовке окна (его просьба 2026-11-15: «убери русские дубли»);
   на компьютере их нет совсем: то же имя уже стоит в заголовке окна */
@media (min-width: 900px) and (min-height: 560px) {
  html[data-theme="nf"] .page-title { display: none; }
  html[data-theme="nf"] #settingsBtn, html[data-theme="nf"] #eventNew { margin-left: auto; }   /* шестерёнка и «Создать» остаются справа */
}
html[data-theme="nf"] .q, html[data-theme="nf"] .empty h2, html[data-theme="nf"] .sheet h3, html[data-theme="nf"] .duo-intro h2,
html[data-theme="nf"] .set-group h3, html[data-theme="nf"] .section-label {
  font-family: var(--px); font-weight: 400; letter-spacing: 0; line-height: 1.35; }
html[data-theme="nf"] .q { font-size: 19px; text-shadow: 2px 0 var(--mag), -2px 0 var(--cyan); }
html[data-theme="nf"] .empty h2 { font-size: 18px; }
html[data-theme="nf"] .sheet h3 { font-size: 15px; color: var(--cyan); }
html[data-theme="nf"] .set-group h3, html[data-theme="nf"] .section-label { font-size: 10px; color: var(--cyan); text-transform: none; }
html[data-theme="nf"] .set-group h3::before, html[data-theme="nf"] .section-label::before { content: "> "; }

/* кнопки Windows 98 */
html[data-theme="nf"] .btn { border-radius: 0; background: var(--win); color: #000; box-shadow: var(--bevel);
  font-family: var(--px); font-weight: 400; font-size: 12px; padding: 15px 14px; letter-spacing: 0; }
html[data-theme="nf"] .btn:active { box-shadow: var(--sunken); transform: none; }
html[data-theme="nf"] .btn.primary { background: var(--navy); color: #fff;
  box-shadow: inset -1px -1px 0 #000, inset 1px 1px 0 var(--navy-hi), inset -2px -2px 0 var(--navy-lo), inset 2px 2px 0 #2a3cff; }
html[data-theme="nf"] .btn.ghost { background: transparent; color: var(--hint); box-shadow: none; }
html[data-theme="nf"] .btn.danger { background: #2a0a2e; color: var(--mag); box-shadow: inset 0 0 0 1px var(--mag); }
html[data-theme="nf"] .btn.small { font-size: 10px; padding: 11px 12px; }
html[data-theme="nf"] .link-btn { font-family: var(--px); font-size: 10px; color: var(--cyan); }
html[data-theme="nf"] .icon-btn { border-radius: 0; background: var(--win); color: #000; box-shadow: var(--bevel); }

/* выборы, чипы, поля */
html[data-theme="nf"] .opt { border-radius: 0; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
html[data-theme="nf"] .opt.on { background: var(--navy); box-shadow: inset 0 0 0 1px var(--cyan); }
html[data-theme="nf"] .opt .dot { border-radius: 0; }
html[data-theme="nf"] .chip { border-radius: 0; background: transparent; color: var(--cyan); box-shadow: inset 0 0 0 1px var(--cyan);
  font-family: var(--px); font-weight: 400; font-size: 10px; padding: 9px 10px; }
html[data-theme="nf"] .chip.on { background: var(--cyan); color: #000; }
html[data-theme="nf"] .field, html[data-theme="nf"] .chat-input textarea { border-radius: 0; background: #000; color: var(--text); box-shadow: var(--sunken); }
html[data-theme="nf"] .wz-bar i { border-radius: 0; background: var(--surface2); }
html[data-theme="nf"] .wz-bar i.done::after, html[data-theme="nf"] .wz-bar i.now::after { background: var(--cyan); }
html[data-theme="nf"] .toggle span { border-radius: 0; background: #000; box-shadow: var(--sunken); }
html[data-theme="nf"] .toggle span::after { border-radius: 0; background: var(--win); box-shadow: var(--bevel); }
html[data-theme="nf"] .toggle input:checked + span { background: var(--navy); }
html[data-theme="nf"] .stepper button { border-radius: 0; background: var(--win); color: #000; box-shadow: var(--bevel); }

/* панели: окна без скруглений */
html[data-theme="nf"] .set-group, html[data-theme="nf"] .perk, html[data-theme="nf"] .stat, html[data-theme="nf"] .tip,
html[data-theme="nf"] .coach, html[data-theme="nf"] .event-card, html[data-theme="nf"] .club-row, html[data-theme="nf"] .likes-banner,
html[data-theme="nf"] .pair-day, html[data-theme="nf"] .duo-card, html[data-theme="nf"] .game-card, html[data-theme="nf"] .meet-card,
html[data-theme="nf"] .poll-card, html[data-theme="nf"] .opening-card, html[data-theme="nf"] .detail-block {
  border-radius: 0; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
html[data-theme="nf"] .likes-banner { background: var(--navy); box-shadow: inset 0 0 0 1px var(--cyan); }
html[data-theme="nf"] .perk i { border-radius: 0; }
html[data-theme="nf"] .perk.on i { background: var(--navy); }
html[data-theme="nf"] .match-row { border-bottom: 1px dashed var(--line); }
html[data-theme="nf"] .match-row b { font-family: var(--px); font-weight: 400; font-size: 12px; line-height: 1.5; }
html[data-theme="nf"] .ava { border-radius: 0; filter: contrast(1.1) saturate(.8); box-shadow: 0 0 0 1px var(--line); }
html[data-theme="nf"] .ava.ring { box-shadow: 0 0 0 2px var(--mag); }
html[data-theme="nf"] .badge, html[data-theme="nf"] .match-row .cnt, html[data-theme="nf"] .cnt-dot { border-radius: 0; background: var(--cyan); color: #000; }

/* анкета в ленте: синий дуотон, точки, полоса помех */
html[data-theme="nf"] .card { background: #000; }
html[data-theme="nf"] .media img, html[data-theme="nf"] .media video { filter: contrast(1.12) saturate(.85); }
html[data-theme="nf"] .media::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1.3px) 0 0 / 3px 3px,
    linear-gradient(transparent 33%, rgba(var(--cyan-rgb), .16) 33% 36%, transparent 36% 64%, rgba(var(--mag-rgb), .14) 64% 65.5%, transparent 65.5%),
    linear-gradient(180deg, rgba(var(--blue-rgb), .16), rgba(0, 0, 40, .45)); mix-blend-mode: screen; }
html[data-theme="nf"] .segs i { border-radius: 0; } html[data-theme="nf"] .segs i.on { background: var(--cyan); }
html[data-theme="nf"] .shade { background: linear-gradient(transparent, rgba(0, 2, 30, .6) 40%, rgba(0, 0, 10, .94)); }
html[data-theme="nf"] .info h2 { font-family: var(--px); font-weight: 400; font-size: 22px; line-height: 1.3; letter-spacing: 0;
  text-shadow: 2px 0 var(--mag), -2px 0 var(--cyan); }
html[data-theme="nf"] .info h2 span { font-weight: 400; }
html[data-theme="nf"] .info .where { color: #a9c8ff; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
html[data-theme="nf"] .info .goal, html[data-theme="nf"] .info .tags span, html[data-theme="nf"] .status-pill, html[data-theme="nf"] .top-pill {
  border-radius: 0; background: rgba(0, 10, 60, .6); color: var(--cyan); box-shadow: inset 0 0 0 1px var(--cyan);
  -webkit-backdrop-filter: none; backdrop-filter: none; font-family: var(--px); font-weight: 400; font-size: 9px; padding: 6px 8px; }
html[data-theme="nf"] .info .tags span.shared { background: var(--mag); color: #000; box-shadow: none; }
html[data-theme="nf"] .game-pill { border-radius: 0; background: var(--win); box-shadow: var(--bevel); font-family: var(--px); font-weight: 400; font-size: 10px; }
html[data-theme="nf"] .liked-you { border-radius: 0; background: var(--win); color: #000; box-shadow: var(--bevel), 6px 8px 0 rgba(0, 0, 0, .5); padding: 30px 12px 12px; }
html[data-theme="nf"] .liked-you::before { content: "Системное сообщение"; position: absolute; left: 3px; right: 3px; top: 3px; height: 20px; padding: 5px 6px;
  font-family: var(--px); font-size: 9px; font-weight: 400; color: #fff; background: linear-gradient(90deg, var(--navy), var(--navy2)); }
html[data-theme="nf"] .rail .ring { border-radius: 0; background: var(--win); color: #000; box-shadow: var(--bevel); -webkit-backdrop-filter: none; backdrop-filter: none; }
html[data-theme="nf"] .rail .like .ring { background: var(--navy); box-shadow: inset -1px -1px 0 #000, inset 1px 1px 0 var(--navy-hi), inset -2px -2px 0 var(--navy-lo), 0 0 18px rgba(var(--mag-rgb), .45); }
html[data-theme="nf"] .rail .like svg { fill: var(--mag); }
html[data-theme="nf"] .rail button { font-family: var(--px); font-size: 8px; font-weight: 400; text-shadow: 1px 1px 0 #000; }
html[data-theme="nf"] .burst svg { fill: var(--mag); filter: drop-shadow(3px 0 var(--cyan)) drop-shadow(-3px 0 #fff); }

/* меню снизу = панель задач */
html[data-theme="nf"] .tabs { background: var(--win); border-top: 0; box-shadow: inset 0 1px 0 #fff, inset 0 2px 0 #dfe0e3; padding: 4px 3px calc(4px + var(--safe-b)); gap: 3px; }
html[data-theme="nf"] .tabs button { color: #000; box-shadow: var(--bevel); font-family: var(--px); font-weight: 400; font-size: 7px; }
html[data-theme="nf"] .tabs button.on { color: #000; box-shadow: var(--sunken); background: repeating-conic-gradient(#c3c7cb 0 25%, #fff 0 50%) 0 0 / 2px 2px; }
html[data-theme="nf"] .tabs button svg { width: 20px; height: 20px; stroke-width: 2.2; }

/* шторка = окно, совпадение и тост = системные сообщения */
html[data-theme="nf"] .sheet { background: rgba(0, 2, 30, .6); }
html[data-theme="nf"] .sheet-card { border-radius: 0; background: var(--bg); border: 3px solid var(--win); border-bottom: 0;
  box-shadow: inset 0 0 0 1px #000; padding-top: 38px; position: relative; }
html[data-theme="nf"] .sheet-card::before { content: "2+1.EXE"; position: sticky; display: block; top: -38px; margin: -38px -18px 14px; height: 26px; padding: 8px;
  font-family: var(--px); font-size: 10px; color: #fff; background: linear-gradient(90deg, var(--navy), var(--navy2)); z-index: 2; }
html[data-theme="nf"] .grip { display: none; }
html[data-theme="nf"] .sheet .opt { background: var(--surface); }
html[data-theme="nf"] .match { background: rgba(0, 2, 30, .9) radial-gradient(circle at 50% 35%, rgba(var(--mag-rgb), .35), transparent 60%); }
html[data-theme="nf"] .match .ph { border-radius: 0; box-shadow: 0 0 0 3px var(--win), 0 0 0 4px #000, 0 0 50px var(--mag); }
html[data-theme="nf"] .match h2 { font-family: var(--px); font-weight: 400; font-size: 28px; letter-spacing: 0; text-shadow: 3px 0 var(--mag), -3px 0 var(--cyan); }
html[data-theme="nf"] .toast { border-radius: 0; background: var(--win); color: #000; box-shadow: var(--bevel), 6px 8px 0 rgba(0, 0, 0, .5);
  padding: 32px 14px 12px; font-family: "NF Mono", monospace; font-weight: 600; font-size: 13px; text-align: left; min-width: 240px; }
html[data-theme="nf"] .toast::before { content: "Сообщение"; position: absolute; left: 3px; right: 3px; top: 3px; height: 20px; padding: 5px 6px;
  font-family: var(--px); font-size: 9px; font-weight: 400; color: #fff; background: linear-gradient(90deg, var(--navy), var(--navy2)); }

/* переписка */
html[data-theme="nf"] .chat-top { background: linear-gradient(90deg, var(--navy), var(--navy2)); border-bottom: 3px solid var(--win); }
html[data-theme="nf"] .chat-peer b { font-family: var(--px); font-weight: 400; font-size: 12px; }
html[data-theme="nf"] .chat-list { background: #000 radial-gradient(rgba(var(--blue-rgb), .22), transparent 70%); }
html[data-theme="nf"] .bubble { border-radius: 0; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; }
html[data-theme="nf"] .bubble.mine { background: var(--navy); color: #fff; border-radius: 0; box-shadow: inset 0 0 0 1px var(--navy-hi); }
html[data-theme="nf"] .day { font-family: var(--px); font-size: 9px; color: var(--cyan); }
html[data-theme="nf"] .chat-input { background: var(--win); border-top: 0; box-shadow: inset 0 1px 0 #fff; }
html[data-theme="nf"] .chat-input .send { border-radius: 0; background: var(--navy); box-shadow: inset -1px -1px 0 #000, inset 1px 1px 0 var(--navy-hi); }
html[data-theme="nf"] .chat-starters .chip { color: var(--cyan); }
html[data-theme="nf"] .fact small { font-family: var(--px); font-weight: 400; font-size: 10px; color: var(--cyan); }
html[data-theme="nf"] .fact.is-lie small { color: var(--mag); }
html[data-theme="nf"] .fact.is-lie .field { box-shadow: var(--sunken), inset 0 0 0 2px var(--mag); }

/* на компьютере: приложение окном Windows 98 на рабочем столе с его обоями */
@media (min-width: 900px) and (min-height: 560px) {
  /* фон рабочего стола: по умолчанию «Чёрно-белая» (его выбор 2026-11-15), в настройках можно выбрать другой (data-wall из 00-core.js) */
  html[data-theme="nf"] { background: linear-gradient(rgba(var(--dim-rgb), .62), rgba(0, 0, 10, .78)), url(nf-wall-bw.jpg?v=5fcce6e2) center / cover no-repeat #000; --tabs: 0px; }
  html[data-theme="nf"][data-wall="blue"] { background-image: linear-gradient(rgba(var(--dim-rgb), .62), rgba(0, 0, 10, .78)), url(nf-wall-blue.jpg?v=84b574ba); }
  html[data-theme="nf"][data-wall="win98"] { background-image: linear-gradient(rgba(var(--dim-rgb), .62), rgba(0, 0, 10, .78)), url(nf-wall-win98.jpg?v=72a33d6a); }
  html[data-theme="nf"][data-wall="green"] { background-image: linear-gradient(rgba(var(--dim-rgb), .62), rgba(0, 0, 10, .78)), url(nf-wall-green.jpg?v=d59acdb9); }
  html[data-theme="nf"][data-wall="glitch"] { background-image: linear-gradient(rgba(var(--dim-rgb), .62), rgba(0, 0, 10, .78)), url(nf-wall.jpg?v=ecc49449); }
  html[data-theme="nf"] #tabs { display: none !important; }      /* на компьютере вкладки в панели задач */
  html[data-theme="nf"]::before { content: attr(data-wt); position: fixed; z-index: 1; left: 50%; top: 22px; width: 466px; margin-left: -233px; height: 30px;
    padding: 9px 8px; box-sizing: border-box; font-family: var(--px); font-size: 11px; color: #fff;
    background: linear-gradient(90deg, var(--navy), var(--navy2)) padding-box, var(--win); border: 3px solid var(--win); border-bottom: 0; }
  html[data-theme="nf"] .nf-desk { display: block; zoom: var(--k, 1); }
  /* окно растёт с экраном: --k из nfDesk (1 на обычном мониторе, до 2.2 на большом); заголовок 30px*k, панель задач 40px*k */
  html[data-theme="nf"]::before { transform: scale(var(--k, 1)); transform-origin: 50% 0; }
  html[data-theme="nf"] body { position: fixed; left: 50%; top: calc(22px + 30px * var(--k, 1)); bottom: auto; width: 466px; margin-left: -233px;
    height: calc((100vh - 44px - 70px * var(--k, 1)) / var(--k, 1)); transform: scale(var(--k, 1)); transform-origin: 50% 0;
    background: var(--bg); border: 3px solid var(--win); border-top: 0; box-shadow: 10px 12px 0 rgba(0, 0, 0, .5); overflow: hidden; }
  html[data-theme="nf"] .chat { height: 100%; }
  html[data-theme="nf"] .sheet-card { max-height: 88%; }
}

/* окно сразу своего размера, ещё до app.js (2026-11-15, «при загрузке очень длинная хуита»): --k считает CSS,
   ступенями по 0,05 от экрана (как было в скрипте: min(ширина/1300, высота/860), от 1 до 2,2); стол и панель задач из web/desk.js */
html { --k: 1; }
@media (min-width: 1365px) and (min-height: 903px) { html { --k: 1.05; } }
@media (min-width: 1431px) and (min-height: 947px) { html { --k: 1.1; } }
@media (min-width: 1495px) and (min-height: 989px) { html { --k: 1.15; } }
@media (min-width: 1560px) and (min-height: 1032px) { html { --k: 1.2; } }
@media (min-width: 1625px) and (min-height: 1075px) { html { --k: 1.25; } }
@media (min-width: 1690px) and (min-height: 1118px) { html { --k: 1.3; } }
@media (min-width: 1756px) and (min-height: 1161px) { html { --k: 1.35; } }
@media (min-width: 1820px) and (min-height: 1204px) { html { --k: 1.4; } }
@media (min-width: 1885px) and (min-height: 1247px) { html { --k: 1.45; } }
@media (min-width: 1950px) and (min-height: 1290px) { html { --k: 1.5; } }
@media (min-width: 2015px) and (min-height: 1333px) { html { --k: 1.55; } }
@media (min-width: 2080px) and (min-height: 1376px) { html { --k: 1.6; } }
@media (min-width: 2145px) and (min-height: 1419px) { html { --k: 1.65; } }
@media (min-width: 2210px) and (min-height: 1462px) { html { --k: 1.7; } }
@media (min-width: 2275px) and (min-height: 1505px) { html { --k: 1.75; } }
@media (min-width: 2340px) and (min-height: 1548px) { html { --k: 1.8; } }
@media (min-width: 2405px) and (min-height: 1591px) { html { --k: 1.85; } }
@media (min-width: 2470px) and (min-height: 1634px) { html { --k: 1.9; } }
@media (min-width: 2535px) and (min-height: 1677px) { html { --k: 1.95; } }
@media (min-width: 2600px) and (min-height: 1720px) { html { --k: 2; } }
@media (min-width: 2665px) and (min-height: 1763px) { html { --k: 2.05; } }
@media (min-width: 2730px) and (min-height: 1806px) { html { --k: 2.1; } }
@media (min-width: 2795px) and (min-height: 1849px) { html { --k: 2.15; } }
@media (min-width: 2861px) and (min-height: 1893px) { html { --k: 2.2; } }

/* рабочий стол на компьютере (01-web.js nfDesk): панель задач, значки, строки терминала */
.nf-desk { display: none; }
.nf-task { position: fixed; z-index: 5; left: 0; right: 0; bottom: 0; height: 40px; display: flex; align-items: center; gap: 4px; padding: 0 4px;
  background: #c3c7cb; box-shadow: inset 0 1px 0 #fff, inset 0 2px 0 #dfe0e3; font-family: var(--px); }
.nf-task button { height: 30px; border: 0; border-radius: 0; background: #c3c7cb; color: #000; font-family: var(--px); font-size: 10px; padding: 0 12px;
  min-width: 128px; text-align: left; display: flex; align-items: center; gap: 8px; box-shadow: var(--bevel); }
.nf-task button.on { box-shadow: var(--sunken); background: repeating-conic-gradient(#c3c7cb 0 25%, #fff 0 50%) 0 0 / 2px 2px; }
.nf-task button svg { width: 16px; height: 16px; stroke-width: 2.4; }
.nf-task sup { background: var(--navy); color: #fff; padding: 2px 4px; font-size: 9px; margin-left: auto; }
.nf-task .tray { margin-left: auto; height: 30px; padding: 0 12px; display: flex; align-items: center; gap: 14px; font-size: 10px; color: #000;
  box-shadow: inset 1px 1px 0 #7b7f86, inset -1px -1px 0 #fff; }
.nf-icons { display: none !important; }
.nf-term { position: fixed; z-index: 2; font-family: var(--px); font-size: 10px; line-height: 1.9; color: rgba(var(--cyan-rgb), .6); white-space: pre; pointer-events: none; }
.nf-term.l { left: 22px; bottom: 64px; } .nf-term.r { right: 24px; bottom: 64px; text-align: right; }
.nf-term.r2 { right: 24px; top: 22px; text-align: right; color: rgba(var(--mag-rgb), .55); }
@media (max-width: 1180px) { .nf-term.r, .nf-term.r2 { display: none; } }
/* окна Win98 без скруглений: кружки-видео, индикаторы, печать ханко остаются круглыми */
html[data-theme="nf"] *:not(.circle):not(.circle-wrap):not(.coach-ring):not(.dot-online):not(.spin i):not(.rec-btn):not(.nf-hanko) { border-radius: 0 !important; }
html[data-theme="nf"] .streak, html[data-theme="nf"] .duo-banner { background: var(--surface); box-shadow: inset 0 0 0 1px var(--mag); }
html[data-theme="nf"] .more-pill, html[data-theme="nf"] .swipe-hint { background: var(--win); color: #000; box-shadow: var(--bevel); font-family: var(--px); font-size: 9px; }
html[data-theme="nf"] .attach, html[data-theme="nf"] .chat-input .attach { background: var(--win); color: #000; box-shadow: var(--bevel); }

/* смены анкет без анимаций: старая сразу заменяется новой (его просьба 2026-11-15) */
/* «Неформал»: лайк и суперлайк (31-nfanim.js) */

html[data-theme="nf"] .nf-fx { position: fixed; inset: 0; z-index: 40; pointer-events: none; overflow: hidden; }
html[data-theme="nf"] .nf-fx-big { position: absolute; left: 50%; top: 45%; width: 132px; translate: -50% -50%;
  animation: nfBig .72s ease-in-out forwards; }
html[data-theme="nf"] .nf-fx-big svg, html[data-theme="nf"] .nf-bit svg { display: block; width: 100%; height: auto; stroke: none; }
html[data-theme="nf"] .nf-fx.like .nf-fx-big svg { fill: var(--mag); filter: drop-shadow(5px 0 var(--cyan)) drop-shadow(-5px 0 #fff); }
html[data-theme="nf"] .nf-fx.super .nf-fx-big { width: 160px; animation-duration: .9s; }
html[data-theme="nf"] .nf-fx.super .nf-fx-big svg { fill: #ffd23d; filter: drop-shadow(5px 0 var(--mag)) drop-shadow(-5px 0 var(--cyan)); }
@keyframes nfBig { 0% { scale: .4; opacity: 0; } 22% { scale: 1.18; opacity: 1; } 40% { scale: .97; } 55% { scale: 1.05; } 75% { scale: 1; opacity: 1; } 100% { scale: 1.45; opacity: 0; } }

html[data-theme="nf"] .nf-fx.super .nf-fx-big { rotate: 0deg; }
html[data-theme="nf"] .nf-bit { position: absolute; left: 50%; top: 45%; width: 18px; margin: -8px 0 0 -9px; opacity: 0;
  animation: nfBit .65s ease-out forwards; }
html[data-theme="nf"] .nf-fx.like .nf-bit svg { fill: var(--mag); }
html[data-theme="nf"] .nf-fx.like .nf-bit.alt svg { fill: var(--cyan); }
html[data-theme="nf"] .nf-fx.super .nf-bit { width: 16px; }
html[data-theme="nf"] .nf-fx.super .nf-bit svg { fill: #ffd23d; }
html[data-theme="nf"] .nf-fx.super .nf-bit.alt svg { fill: #fff; }
@keyframes nfBit {
  0% { transform: translate(0, 0) scale(.3); opacity: 1; }
  70% { opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(1.1); opacity: 0; }
}
html[data-theme="nf"] .nf-fx-flash { position: absolute; inset: 0; background: #fff; opacity: 0; animation: nfFlash .2s steps(2); }
@keyframes nfFlash { 0% { opacity: .55; } 100% { opacity: 0; } }
html[data-theme="nf"] .nf-fx-word { position: absolute; left: 0; right: 0; top: calc(45% + 92px); text-align: center;
  font: 26px/1 var(--px); color: #ffd23d; text-shadow: 3px 0 var(--mag), -3px 0 var(--cyan); animation: nfWord .9s ease-out forwards; }
@keyframes nfWord { 0% { opacity: 0; transform: translateY(8px); } 18% { opacity: 1; transform: none; } 75% { opacity: 1; } 100% { opacity: 0; } }

/* «Неформал»: окна вместо всплывашек, BIOS при запуске */
html[data-theme="nf"] .toast.nf-win { padding: 3px; border-radius: 0; background: var(--win); color: #000; box-shadow: var(--bevel), 4px 4px 0 rgba(0, 0, 0, .6);
  min-width: min(300px, 90vw); text-align: left; animation: nfPopToast .14s steps(2) both; }
@keyframes nfPopToast { from { transform: translateX(-50%) scale(.7); } }
html[data-theme="nf"] .toast .nf-tt { display: block; background: var(--grad); color: #fff; font: 10px/1 var(--px); padding: 5px 6px; }
html[data-theme="nf"] .toast .nf-tb { display: flex; align-items: center; gap: 10px; padding: 10px; font-size: 13px; line-height: 1.35; }
html[data-theme="nf"] .toast .nf-tb i { flex: none; width: 24px; height: 24px; display: grid; place-items: center; font: 700 15px/1 "NF Mono", monospace;
  font-style: normal; color: #000; background: #ffd23d; clip-path: polygon(50% 0, 100% 100%, 0 100%); padding-top: 6px; }
html[data-theme="nf"] .nf-bios { position: absolute; inset: 0; padding: calc(24px + var(--top, 0px)) 22px; text-align: left; background: #000;
  color: #c8c8c8; font: 13px/1.6 "NF Mono", monospace; white-space: pre; overflow: hidden; }
html[data-theme="nf"] .nf-bios div:first-child { color: #fff; }
html[data-theme="nf"] .nf-bios div:last-child { color: var(--cyan); }

/* «Неформал»: свайп, заставка */
html[data-theme="nf"] .card.nf-snap { animation: nfSnap .3s ease-out; }
@keyframes nfSnap { 0% { transform: translateY(-16px); filter: hue-rotate(60deg) contrast(1.4); } 45% { transform: translateY(7px); } 75% { transform: translate(-3px, -2px); } 100% { transform: none; filter: none; } }
html[data-theme="nf"] .empty.nf-saver { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
html[data-theme="nf"] .empty.nf-saver > :not(.nf-saver-bg) { position: relative; z-index: 1; }
html[data-theme="nf"] .nf-saver-bg { position: absolute; inset: 0; pointer-events: none; }
html[data-theme="nf"] .nf-saver-bit { position: absolute; opacity: .75; animation: nfDrift 9s steps(48) infinite alternate; }
html[data-theme="nf"] .nf-saver-bit svg { display: block; width: 100%; height: auto; stroke: none; fill: var(--mag); }
html[data-theme="nf"] .nf-saver-bit.alt svg { fill: var(--cyan); }
html[data-theme="nf"] .nf-saver-bit.gold svg { fill: #ffd23d; }
@keyframes nfDrift { from { transform: translate(0, 0); } to { transform: translate(var(--dx), var(--dy)); } }
html[data-theme="nf"] .nf-marquee { width: 100%; max-width: 360px; overflow: hidden; margin: 6px 0 22px; box-shadow: var(--sunken); background: #000; padding: 6px 0; }
html[data-theme="nf"] .nf-marquee span { display: inline-block; white-space: nowrap; padding-left: 100%; color: var(--cyan);
  font-size: 13px; animation: nfMarquee 14s linear infinite; }
@keyframes nfMarquee { to { transform: translateX(-100%); } }

/* «Неформал»: мэтч по модему, чат-терминал */
html[data-theme="nf"] .match.nf-modem { background: rgba(3, 4, 11, .94); }
html[data-theme="nf"] .nf-mrow { display: flex; align-items: center; justify-content: center; width: 100%; max-width: 380px; }
html[data-theme="nf"] .nf-mwin { flex: none; width: 128px; padding: 3px; background: var(--win); box-shadow: var(--bevel), 4px 4px 0 rgba(0, 0, 0, .6); }
html[data-theme="nf"] .nf-mwin b { display: block; background: var(--grad); color: #fff; font: 9px/1 var(--px); padding: 4px 5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[data-theme="nf"] .nf-mwin img, html[data-theme="nf"] .nf-noph { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; margin-top: 3px; background: #000; }
html[data-theme="nf"] .nf-noph { display: grid; place-items: center; }
html[data-theme="nf"] .nf-noph svg { width: 50%; fill: var(--mag); stroke: none; }
html[data-theme="nf"] .nf-mwin.a { animation: nfWinA .5s steps(5) both; }
html[data-theme="nf"] .nf-mwin.b { animation: nfWinB .5s steps(5) both; }
@keyframes nfWinA { from { transform: translateX(-120px); opacity: 0; } }
@keyframes nfWinB { from { transform: translateX(120px); opacity: 0; } }
html[data-theme="nf"] .nf-wire { flex: 1; min-width: 40px; height: 4px; margin: 0 6px; background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 10px); position: relative; }
html[data-theme="nf"] .nf-wire i { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, var(--cyan) 0 6px, transparent 6px 10px);
  box-shadow: 0 0 8px var(--cyan); animation: nfWire .8s steps(8) .3s both; }
@keyframes nfWire { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
html[data-theme="nf"] .nf-dial { margin-top: 18px; color: var(--cyan); font-size: 13px; text-shadow: 0 0 6px rgba(var(--cyan-rgb), .6); min-height: 1.4em; }
html[data-theme="nf"] .match.nf-modem h2 { font: 26px/1.2 var(--px); color: var(--mag); text-shadow: 3px 0 var(--cyan); margin: 18px 0 8px; animation: nfShow 0s 1s both; }
html[data-theme="nf"] .match.nf-modem p, html[data-theme="nf"] .match.nf-modem .btn { animation: nfShow 0s 1.1s both; }
@keyframes nfShow { from { visibility: hidden; } }
html[data-theme="nf"] .bubble.nf-sent { animation: nfSent .3s steps(3); }
@keyframes nfSent { 0% { opacity: .2; filter: hue-rotate(90deg); } 50% { opacity: 1; } 70% { opacity: .5; } 100% { opacity: 1; filter: none; } }
html[data-theme="nf"] .nf-pkt { display: block; margin-top: 3px; font-size: 10px; color: var(--cyan); opacity: .8; animation: nfWord 1.2s ease-out both; }
html[data-theme="nf"] .bubble.nf-typed { animation: nfTyped .45s steps(14) both; }
@keyframes nfTyped { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
html[data-theme="nf"] #chatText { caret-color: var(--cyan); }

/* скины анкеты: цвета карточки из готовых наборов (настройки → «Скин анкеты»), действуют в «Неформале» */
.skin-base { --sk1: var(--cyan); --sk2: var(--mag); --sk-tint: rgba(var(--blue-rgb), .16); }
.skin-acid { --sk1: #b6ff00; --sk2: #00ff9c; --sk-tint: rgba(80, 255, 0, .14); }
.skin-ice { --sk1: #e8f6ff; --sk2: #7fb8ff; --sk-tint: rgba(170, 215, 255, .2); }
.skin-gold { --sk1: #ffd23d; --sk2: #b04bff; --sk-tint: rgba(255, 190, 40, .15); }
.skin-matrix { --sk1: #39ff6a; --sk2: #0fbf45; --sk-tint: rgba(0, 255, 80, .15); }
.skin-sunset { --sk1: #ff9a3c; --sk2: #ff3d8b; --sk-tint: rgba(255, 110, 60, .17); }
.skin-vhs { --sk1: #ffffff; --sk2: var(--mag); --sk-tint: rgba(255, 255, 255, .1); }
html[data-theme="nf"] .card[class*="skin-"] { --cyan: var(--sk1); --mag: var(--sk2); }
html[data-theme="nf"] .card[class*="skin-"] .media::after {
  background: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1.3px) 0 0 / 3px 3px,
    linear-gradient(transparent 33%, color-mix(in srgb, var(--sk1) 18%, transparent) 33% 36%, transparent 36% 64%, color-mix(in srgb, var(--sk2) 16%, transparent) 64% 65.5%, transparent 65.5%),
    linear-gradient(180deg, var(--sk-tint), rgba(0, 0, 20, .45)); }
html[data-theme="nf"] .card[class*="skin-"]::after { content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  box-shadow: inset 0 0 0 2px var(--sk1), inset 0 0 18px color-mix(in srgb, var(--sk1) 35%, transparent); }
html[data-theme="nf"] .card.skin-vhs .media::after { background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .07) 0 1px, transparent 1px 3px),
  linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(0, 0, 0, .5)); }
html[data-theme="nf"] .card.skin-vhs .media img, html[data-theme="nf"] .card.skin-vhs .media video { filter: contrast(1.2) saturate(.55) sepia(.15); }
.set-sub { margin: -4px 0 10px; font-size: 13px; color: var(--hint); }
.skin-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.skin-pick button { display: flex; align-items: center; gap: 8px; padding: 8px 12px 8px 8px; border: 0; border-radius: 12px; font: inherit; font-size: 14px;
  background: var(--surface2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.skin-pick button i { width: 22px; height: 22px; border-radius: 6px; background: linear-gradient(135deg, var(--sk1) 50%, var(--sk2) 50%); }
.skin-pick button.on { box-shadow: inset 0 0 0 2px var(--sk1); }
html[data-theme="nf"] .skin-pick button, html[data-theme="nf"] .skin-pick button i { border-radius: 0; }
html[data-theme="nf"] .toast.nf-win::before { content: none; }

/* «Неформал»: японское ретро 80-х (32-nfjp.js). Вне «Неформала» всё это скрыто. */
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.ev-jp, .ev-num, .nf-hanko, .dvizh-tabs .jp { display: none; }
html[data-theme="nf"] { --jp: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Noto Sans CJK JP", "Yu Gothic", "Meiryo", sans-serif; }

/* заголовок окна с японской подписью под ним, как титры старого аниме */
html[data-theme="nf"] .page-title[data-jp] { position: relative; margin-bottom: 30px; }
html[data-theme="nf"] .mine-head:has(.page-title[data-jp]) { margin-bottom: 26px; }
html[data-theme="nf"] .mine-head .page-title[data-jp] { margin-bottom: 0; }
html[data-theme="nf"] .page-title[data-jp]::before { content: attr(data-jp); position: absolute; left: 0; top: 100%; margin-top: 8px;
  font: 600 12px/1 var(--jp); letter-spacing: 4px; color: var(--mag); text-shadow: 1px 0 var(--cyan); white-space: nowrap; pointer-events: none; }

/* встреча как японский постер: растр точками, вертикальная катакана сбоку, крупное число даты */
html[data-theme="nf"] .event-card.nf-poster { position: relative; overflow: hidden; padding-right: 50px;
  background: radial-gradient(color-mix(in srgb, var(--mag) 22%, transparent) 1px, transparent 1.4px) 0 0 / 6px 6px,
    linear-gradient(160deg, color-mix(in srgb, var(--mag) 10%, var(--surface)), var(--surface) 55%); }
html[data-theme="nf"] .event-card .ev-jp { display: block; position: absolute; top: 0; right: 0; bottom: 0; width: 38px; padding: 12px 0;
  writing-mode: vertical-rl; text-orientation: upright; font: 800 17px/38px var(--jp); letter-spacing: 3px; text-align: start;
  color: #000; background: var(--cyan); box-shadow: inset 2px 0 0 var(--mag); overflow: hidden; white-space: nowrap; }
html[data-theme="nf"] .event-card .ev-num { display: flex; align-items: baseline; gap: 8px; margin: 2px 0 6px; }
html[data-theme="nf"] .event-card .ev-num b { font: 400 34px/1 var(--px); color: #fff; text-shadow: 3px 0 var(--mag), -3px 0 var(--cyan); }
html[data-theme="nf"] .event-card .ev-num span { font: 700 13px/1 var(--jp); color: var(--cyan); letter-spacing: 1px; }

/* печать ханко: красный круг с иероглифами, «Иду» (行く) или «организатор» (主催) */
html[data-theme="nf"] .nf-hanko { display: grid; place-items: center; position: absolute; right: 58px; top: 14px; z-index: 3; width: 58px; height: 58px;
  border-radius: 50%; color: #e3122b; border: 3px solid #e3122b; box-shadow: inset 0 0 0 2px rgba(227, 18, 43, .35);
  transform: rotate(-12deg); opacity: .88; pointer-events: none; mix-blend-mode: screen; }
html[data-theme="nf"] .nf-hanko span { display: flex; flex-direction: column; align-items: center; font: 900 17px/1.05 var(--jp); }
html[data-theme="nf"] .nf-hanko b { display: block; font-weight: 900; }
html[data-theme="nf"] .nf-hanko.fresh { animation: nfHanko .38s cubic-bezier(.2, .9, .3, 1.4) both; }
@keyframes nfHanko {
  0% { transform: rotate(-30deg) scale(2.6); opacity: 0; }
  55% { transform: rotate(-12deg) scale(.9); opacity: 1; }
  70% { transform: rotate(-12deg) scale(1.06); }
  100% { transform: rotate(-12deg) scale(1); opacity: .88; }
}
html[data-theme="nf"] .event-card:has(.nf-hanko.fresh) { animation: nfShake .08s steps(1) 2 .2s; }

/* вкладки «Движа»: неоновые вывески, выбранная горит, вторая мерцает */
html[data-theme="nf"] .dvizh-tabs { gap: 12px; }
html[data-theme="nf"] .dvizh-tabs .chip { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 14px 9px;
  background: rgba(0, 0, 0, .55); color: var(--mag); box-shadow: inset 0 0 0 2px var(--mag), 0 0 10px color-mix(in srgb, var(--mag) 60%, transparent);
  text-shadow: 0 0 6px var(--mag); animation: nfFlicker 4s steps(1) infinite; }
html[data-theme="nf"] .dvizh-tabs .chip .jp { display: block; font: 800 15px/1 var(--jp); letter-spacing: 2px; font-style: normal; }
html[data-theme="nf"] .dvizh-tabs .chip.on { color: #fff; background: rgba(0, 0, 0, .55); animation: none;
  box-shadow: inset 0 0 0 2px var(--cyan), 0 0 6px var(--cyan), 0 0 22px var(--cyan); text-shadow: 0 0 4px #fff, 0 0 12px var(--cyan); }
@keyframes nfFlicker { 0%, 100% { opacity: .85; } 41% { opacity: .3; } 42% { opacity: .85; } 44% { opacity: .4; } 45% { opacity: .85; } 77% { opacity: .55; } 78% { opacity: .85; } }

/* скины City pop (закат, розово-фиолетовый) и PC-98 (мало цветов и шахматный растр) */
.skin-citypop { --sk1: #ff7ad9; --sk2: #8a5cff; --sk-tint: rgba(255, 60, 170, .2); }
.skin-pc98 { --sk1: #55ffff; --sk2: #ff55ff; --sk-tint: rgba(0, 0, 170, .14); }
html[data-theme="nf"] .card.skin-citypop .media::after {
  background: repeating-linear-gradient(180deg, transparent 0 7px, rgba(255, 160, 80, .14) 7px 9px) 0 62% / 100% 38% no-repeat,
    linear-gradient(180deg, rgba(140, 40, 255, .28), rgba(255, 60, 150, .16) 55%, rgba(20, 0, 50, .55)); }
html[data-theme="nf"] .card.skin-pc98 .media img, html[data-theme="nf"] .card.skin-pc98 .media video { filter: url(#pc98) contrast(1.15) saturate(1.4); }
html[data-theme="nf"] .card.skin-pc98 .media::after {
  background: repeating-conic-gradient(rgba(0, 0, 0, .22) 0 25%, transparent 0 50%) 0 0 / 2px 2px, linear-gradient(180deg, transparent 50%, rgba(0, 0, 60, .5)); }

@media (prefers-reduced-motion: reduce) {
  html[data-theme="nf"] .dvizh-tabs .chip, html[data-theme="nf"] .nf-hanko.fresh { animation: none; }
}

/* ---------- VIP-клуб: значок на анкете, VIP-зал, кто лайкнул ---------- */
.card.is-vip { box-shadow: 0 0 0 2px #ffd700, 0 8px 32px rgba(255, 215, 0, .35); }
.crown-wrap { display: inline-flex; vertical-align: middle; margin-left: 6px; }
.crown-wrap svg { width: 20px; height: 20px; fill: #ffd700; filter: drop-shadow(0 0 6px rgba(255, 215, 0, .8)); }
.goal.vip-tag { background: linear-gradient(135deg, #ffd700, #ff8c00); color: #000; font-weight: 900; text-shadow: none; box-shadow: 0 2px 8px rgba(255, 215, 0, .4); }
.top-pill.vip-pill { background: linear-gradient(135deg, rgba(255, 215, 0, .25), rgba(255, 140, 0, .25)); border: 1px solid rgba(255, 215, 0, .5); color: #ffd700; }
.top-pill.vip-pill.on { background: linear-gradient(135deg, #ffd700, #ff8c00); color: #000; border-color: #ffd700; box-shadow: 0 0 14px rgba(255, 215, 0, .7); }
.top-pill.vip-pill.on svg { fill: #000; }
.top-pill.vip-pill svg { fill: #ffd700; width: 16px; height: 16px; }

.vip-sheet-hd { text-align: center; margin-bottom: 16px; }
.vip-big-crown { display: inline-block; width: 56px; height: 56px; margin: 0 auto 8px; }
.vip-big-crown svg { width: 100%; height: 100%; fill: #ffd700; filter: drop-shadow(0 0 16px rgba(255, 215, 0, .7)); }
.vip-sheet-hd h2 { font-size: 24px; font-weight: 900; color: #ffd700; margin: 0 0 4px; letter-spacing: 1px; }

.vip-perks-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.vip-perk-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--surface2); }
.vp-ico { width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 215, 0, .15); display: grid; place-items: center; flex: none; color: #ffd700; }
.vp-ico svg { width: 18px; height: 18px; fill: currentColor; }
.vp-info { min-width: 0; flex: 1; }
.vp-info b { display: block; font-size: 14px; color: var(--text); }
.vp-info small { color: var(--hint); font-size: 12px; line-height: 1.3; display: block; margin-top: 1px; }

.vip-plans-title { font-size: 13px; font-weight: 800; color: var(--hint); text-transform: uppercase; letter-spacing: .5px; margin: 16px 0 8px; }
.vip-plans-list { display: flex; flex-direction: column; gap: 8px; }
.vip-plan-card { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface); color: inherit; cursor: pointer; transition: transform .15s ease, border-color .15s ease; text-align: left; }
.vip-plan-card:active { transform: scale(.98); }
.vip-plan-card.hit { border-color: #ffd700; background: linear-gradient(135deg, rgba(255, 215, 0, .08), rgba(255, 140, 0, .12)); box-shadow: 0 4px 16px rgba(255, 215, 0, .2); }
.vpc-badge { position: absolute; top: -9px; right: 14px; background: linear-gradient(135deg, #ffd700, #ff8c00); color: #000; font-size: 10px; font-weight: 900; padding: 2px 8px; border-radius: 999px; letter-spacing: .5px; }
.vpc-left b { display: block; font-size: 16px; font-weight: 800; }
.vpc-left small { color: var(--hint); font-size: 12px; }
.vpc-price { text-align: right; }
.vp-stars { display: block; font-size: 17px; font-weight: 900; color: #ffd700; }
.vpc-price small { color: var(--hint); font-size: 11px; }

/* VIP Радар: кто тебя лайкнул */
.vip-radar-box { width: 100%; margin-bottom: 14px; background: linear-gradient(135deg, rgba(255, 215, 0, .1), rgba(123, 77, 255, .15)); border: 1px solid rgba(255, 215, 0, .4); border-radius: 18px; padding: 14px; }
.vr-header { font-size: 15px; font-weight: 800; color: #ffd700; margin-bottom: 10px; }
.vr-list { display: flex; flex-direction: column; gap: 8px; }
.liker-card { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; background: var(--surface); }
.liker-card .ava { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.liker-info { flex: 1; min-width: 0; }
.liker-info b { display: block; font-size: 15px; }
.liker-info small { color: var(--hint); font-size: 12px; }
.likes-banner.vip-banner { background: linear-gradient(135deg, rgba(255, 215, 0, .25), rgba(255, 45, 111, .3)); border: 1px solid rgba(255, 215, 0, .5); }
.likes-banner.vip-banner .n { background: #ffd700; color: #000; font-size: 18px; }

/* Категории в меню анкеты */
.perk-sec { margin-top: 14px; width: 100%; }
.perk-sec-title { font-size: 11px; font-weight: 800; color: var(--hint); text-transform: uppercase; letter-spacing: .6px; margin: 0 4px 6px; font-family: var(--px, inherit); }
.perk.hot { border-color: #ffd700; box-shadow: 0 0 10px rgba(255, 215, 0, .35); animation: perkPulse 2s infinite ease-in-out; }
@keyframes perkPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

/* Колесо Фортуны .EXE */
/* колесо призов: круг в SVG (40-profile.js), стиль «Неформала»: серый обод с лампочками, пиксельный указатель */
.wheel-container { position: relative; width: 268px; height: 268px; margin: 18px auto 6px; }
.wheel-rim, .wheel-spinner { position: absolute; inset: 4px; }
.wheel-rim svg, .wheel-spinner svg { display: block; width: 100%; height: 100%; overflow: visible; }
/* общее правило иконок (svg { stroke: currentColor }) обводило подписи белым, и их было не прочитать */
.wheel-container svg { stroke: none; }
.wheel-spinner .wt, .wheel-hub text { stroke: none; }
.wheel-rim .wr { fill: var(--bg); stroke: var(--win); stroke-width: 12; filter: drop-shadow(0 0 14px rgba(var(--mag-rgb), .45)); }
.wheel-rim .wb { fill: #fff3a0; }
.wheel-rim .wb.alt { fill: var(--mag); }
.wheel-container.spinning .wheel-rim .wb { animation: wBulb .24s steps(1) infinite; }
.wheel-container.spinning .wheel-rim .wb.alt { animation-delay: .12s; }
.wheel-container.won .wheel-rim .wb { animation: wBulb .5s steps(1) 4; }
@keyframes wBulb { 50% { fill: #2a2f55; } }
.wheel-spinner { inset: 10px; transition: transform 3.5s cubic-bezier(.15, .9, .2, 1); }
.wheel-spinner .ws { stroke: #000; stroke-width: 2; }
.wheel-spinner .ws.on { animation: wWon .5s ease-in-out 3; }
@keyframes wWon { 50% { filter: brightness(1.45); } }
.wheel-spinner .wl { stroke: #000; stroke-width: 3; pointer-events: none; }
.wheel-spinner .wt { fill: #000; font: 8px/1 var(--px, ui-monospace); letter-spacing: 0; pointer-events: none; paint-order: normal; }
.wheel-hub { position: absolute; left: 50%; top: 50%; width: 60px; height: 60px; margin: -30px 0 0 -30px; pointer-events: none; }
.wheel-hub svg { display: block; width: 100%; height: 100%; }
.wheel-hub circle { fill: var(--win); stroke: #000; stroke-width: 3; }
.wheel-hub circle.in { fill: var(--bg); stroke: var(--win-d); stroke-width: 2; }
.wheel-hub text { fill: var(--mag); font: 13px/1 var(--px, ui-monospace); }
.wheel-pin { position: absolute; top: -8px; left: 50%; width: 28px; margin-left: -14px; z-index: 3; pointer-events: none;
  filter: drop-shadow(3px 0 var(--cyan)) drop-shadow(0 3px 0 #000); }
.wheel-pin svg { display: block; width: 100%; height: auto; fill: var(--mag); }

.prize-win { text-align: center; padding: 10px 0; }
.prize-win-icon { width: 56px; height: 56px; margin: 0 auto 8px; color: #ffd700; animation: bounce 1s infinite alternate; }
.prize-win-icon svg { width: 100%; height: 100%; fill: currentColor; }
.prize-win-title { display: block; font-size: 20px; font-weight: 900; color: #ffd700; margin: 8px 0 4px; }
.prize-win-desc { color: var(--hint); font-size: 14px; margin-bottom: 16px; }
@keyframes bounce { from { transform: translateY(0); } to { transform: translateY(-8px); } }

/* голосовой звонок (52-call.js): экран поверх всего и карточка в переписке */
.call-screen { position: fixed; inset: 0; z-index: 60; background: var(--bg); display: flex; flex-direction: column;
  align-items: center; justify-content: space-between; padding: 18vh 24px calc(48px + var(--safe-b)); animation: fade .2s; }
.call-who { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.call-who .call-ava { width: 128px; height: 128px; font-size: 44px; }
.call-who b { font-size: 26px; font-weight: 900; }
.call-status { color: var(--hint); font-size: 16px; font-variant-numeric: tabular-nums; min-height: 20px; }
.call-btns { display: flex; gap: 48px; justify-content: center; }
.call-btn { display: flex; flex-direction: column; align-items: center; gap: 8px; background: none; border: 0; color: var(--text); font-size: 13px; }
.call-btn i { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; background: var(--surface2); }
.call-btn i svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.call-btn.accept i { background: var(--ok); color: #fff; }
.call-btn.decline i { background: #e5484d; color: #fff; }
.call-btn.mute.off i { background: var(--text); color: var(--bg); }
.call-card { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.call-card .call-ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; display: block; }
.call-card.missed { color: #e5484d; }
.call-card .link-btn { margin-left: auto; }
html[data-theme="nf"] .call-screen { background: var(--bg); font-family: var(--px); }
html[data-theme="nf"] .call-btn i { border-radius: 0; box-shadow: var(--bevel); background: var(--win); color: #000; }
html[data-theme="nf"] .call-btn.accept i { background: var(--ok); }
html[data-theme="nf"] .call-btn.decline i { background: #2a0a2e; color: var(--mag); box-shadow: inset 0 0 0 1px var(--mag); }
/* значки вместо эмодзи: корона в VIP-метке, звезда у цены, корона в радаре */
.goal.vip-tag { display: inline-flex; align-items: center; gap: 4px; }
.goal.vip-tag svg { width: 13px; height: 13px; fill: currentColor; }
.vp-stars { display: inline-flex; align-items: center; gap: 4px; }
.vp-stars svg { width: 16px; height: 16px; fill: currentColor; }
.vr-header { display: flex; align-items: center; gap: 6px; }
.vr-header svg, .likes-banner .n svg { width: 18px; height: 18px; fill: #ffd700; }

/* своя анкета списком, вариант B (2026-11-12): шапка с фото и процентом, цифры полосой, разделы строками */
.mine-top { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--surface); border-radius: 18px; }
.mine-ava { width: 46px; height: 58px; flex: none; border-radius: 12px; object-fit: cover; background: var(--surface2);
  display: grid; place-items: center; font-size: 22px; font-weight: 900; color: var(--hint); }
.mine-top .who { flex: 1; min-width: 0; }
.mine-top .who b { display: block; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mine-top .who small { color: var(--hint); font-size: 12px; }
.mine-top .bar { height: 8px; margin-top: 6px; background: var(--surface2); border-radius: 4px; overflow: hidden; max-width: 180px; }
.mine-top .bar i { display: block; height: 100%; width: calc(var(--p) * 1%); background: var(--grad); }
.mine-top .btn { flex: none; }
#coach .coach-list { margin-top: 0; border-radius: 0 0 18px 18px; }
.stats { gap: 0; background: var(--surface); border-radius: 18px; }
.stats .stat { background: none; border-radius: 0; padding: 10px 6px; }
.stats .stat + .stat { box-shadow: inset 1px 0 0 var(--line); }
.stats .tip { margin-top: 8px; }
.streak { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.streak b { font-size: 15px; }
.streak small { font-size: 12px; white-space: nowrap; }
.perks.list { display: flex; flex-direction: column; gap: 0; background: var(--surface); border-radius: 18px; overflow: hidden; margin-bottom: 0; }
.perks.list .perk { display: grid; grid-template-columns: 22px auto 1fr; align-items: center; gap: 10px; min-height: 44px;
  padding: 8px 12px; border-radius: 0; background: none; box-shadow: none; animation: none; color: var(--text); }
.perks.list .perk + .perk { box-shadow: inset 0 1px 0 var(--line); }
.perks.list .perk i { width: 22px; height: 22px; margin: 0; background: none; border-radius: 0; color: var(--a2); }
.perks.list .perk i svg { width: 18px; height: 18px; }
.perks.list .perk b { font-size: 14px; white-space: nowrap; }
.perks.list .perk small { justify-self: end; text-align: right; -webkit-line-clamp: 1; font-size: 12px; }
.perks.list .perk.on i { background: none; color: var(--ok); }
.perks.list .perk.on small { color: var(--ok); font-weight: 700; }
.perks.list .perk.hot i, .perks.list .perk.hot small { color: var(--a1); font-weight: 700; }
.perk-more > summary { cursor: pointer; list-style: none; text-transform: none; letter-spacing: 0; }
.perk-more > summary::-webkit-details-marker { display: none; }
.perk-more > summary::before { content: "▸ "; }
.perk-more[open] > summary::before { content: "▾ "; }
.perk-more[open] > summary { margin-bottom: 6px; }

/* то же в «Неформале»: заголовки разделов как полоса окна Windows 98, строки зеброй */
html[data-theme="nf"] .mine-top, html[data-theme="nf"] .stats { border-radius: 0; box-shadow: inset 0 0 0 1px var(--line); }
html[data-theme="nf"] .mine-ava { border-radius: 0; box-shadow: 0 0 0 1px var(--line); filter: contrast(1.1) saturate(.8); }
html[data-theme="nf"] .mine-top .bar { border-radius: 0; background: #000; box-shadow: var(--sunken); height: 10px; }
html[data-theme="nf"] .mine-top .bar i { background: repeating-linear-gradient(90deg, var(--cyan) 0 8px, transparent 8px 10px); }
html[data-theme="nf"] .stats .stat { box-shadow: none; }
html[data-theme="nf"] .stats .stat + .stat { box-shadow: inset 1px 0 0 var(--line); }
html[data-theme="nf"] .stats .stat b { color: var(--cyan); }
html[data-theme="nf"] .perk-sec:not(.perk-more) > .perk-sec-title { background: var(--grad); color: #fff; margin: 0; padding: 5px 8px; }
html[data-theme="nf"] .perk-sec:not(.perk-more) > .perk-sec-title::before { content: "▾ "; }
html[data-theme="nf"] .perks.list { border-radius: 0; box-shadow: inset 0 0 0 1px var(--line); }
html[data-theme="nf"] .perks.list .perk { box-shadow: none; }
html[data-theme="nf"] .perks.list .perk:nth-child(even) { background: #0d1348; }
html[data-theme="nf"] .perks.list .perk i { color: var(--cyan); }
html[data-theme="nf"] .perks.list .perk.on i { background: none; color: var(--ok); }
html[data-theme="nf"] .perks.list .perk.hot i, html[data-theme="nf"] .perks.list .perk.hot small { color: var(--mag); }

/* пустая лента: чем заняться сейчас (2026-11-12) */
.empty-acts { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 340px; margin: 0 auto 16px; text-align: left; }
.empty-act { display: grid; grid-template-columns: 32px 1fr; align-items: center; gap: 10px; border: 0; padding: 10px 12px;
  background: var(--surface); color: var(--text); border-radius: 14px; }
.empty-act i { width: 32px; height: 32px; display: grid; place-items: center; background: var(--surface2); border-radius: 10px; color: var(--a2); }
.empty-act i svg { width: 18px; height: 18px; }
.empty-act b { display: block; font-size: 14px; }
.empty-act small { display: block; color: var(--hint); font-size: 12px; line-height: 1.3; }
.empty-act:first-child i { color: var(--a1); }
html[data-theme="nf"] .empty-act { border-radius: 0; box-shadow: inset 0 0 0 1px var(--line); }
html[data-theme="nf"] .empty-act:first-child { box-shadow: inset 0 0 0 1px var(--mag); }
html[data-theme="nf"] .empty-act i { border-radius: 0; color: var(--cyan); }
html[data-theme="nf"] .empty-act:first-child i { color: var(--mag); }

/* ряд наборов «Твой вайб» переносится на строки (2026-11-15): вбок он на компьютере не листался */
.chip-row.wrap { flex-wrap: wrap; overflow: visible; margin: 0 0 14px; padding: 0; }
.city-sugg { margin-top: 10px; }
.city-sugg:empty { display: none; }

/* пасхалки возраста 67 и 42 (2026-11-15) */
.wheel-row span.egg-sway { animation: eggSway .35s ease-in-out 4; }
@keyframes eggSway { 0%, 100% { transform: rotate(0) translateY(0); } 25% { transform: rotate(-12deg) translateY(-6px); } 75% { transform: rotate(12deg) translateY(6px); } }
.egg-win { position: fixed; left: 50%; top: 38%; transform: translate(-50%, -50%) scale(.9); z-index: 300; width: min(300px, 86vw);
  background: var(--surface); color: var(--text); border-radius: 14px; overflow: hidden; box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
  animation: eggIn .25s ease-out forwards; }
.egg-win.out { animation: eggOut .35s ease-in forwards; }
.egg-bar { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px; background: var(--grad); color: #fff; font-weight: 800; font-size: 13px; }
.egg-bar i { font-style: normal; opacity: .8; }
.egg-body { padding: 14px; text-align: center; }
.egg-body b { display: block; font-size: 44px; font-weight: 900; line-height: 1; margin-bottom: 6px; }
.egg-67 .egg-body b { animation: eggSway .35s ease-in-out 4; }
.egg-42 .egg-body b { animation: eggGlitch .2s steps(2) 6; }
.egg-body p { margin: 0; font-size: 13px; color: var(--hint); line-height: 1.35; }
@keyframes eggIn { to { transform: translate(-50%, -50%) scale(1); } }
@keyframes eggOut { to { transform: translate(-50%, -50%) scale(.9); opacity: 0; } }
@keyframes eggGlitch { 0% { transform: translateX(-3px); text-shadow: 3px 0 var(--mag), -3px 0 var(--cyan); } 100% { transform: translateX(3px); text-shadow: -3px 0 var(--mag), 3px 0 var(--cyan); } }
.age-meme { font-style: normal; font-size: 11px; font-weight: 800; padding: 2px 6px; margin-left: 6px; border-radius: 6px; vertical-align: middle;
  background: var(--grad); color: #fff; }
html[data-theme="nf"] .egg-win { border-radius: 0; box-shadow: var(--bevel), 0 10px 40px rgba(0, 0, 0, .6); }
html[data-theme="nf"] .egg-bar { background: linear-gradient(90deg, var(--navy), var(--navy2)); font-family: var(--px); font-size: 10px; }
html[data-theme="nf"] .egg-body b { font-family: var(--px); font-size: 34px; text-shadow: 3px 0 var(--mag), -3px 0 var(--cyan); }
@media (prefers-reduced-motion: reduce) { .wheel-row span.egg-sway, .egg-body b { animation: none !important; } }
.info .fit-hide { display: none !important; }

/* ===== лента, вариант B (2026-11-14, «перегружено»): кнопки строкой ПОД фото, на фото только главное ===== */
.card.has-rail { --bar: 88px; }
/* копии для глитча при перетаскивании (33-feel.js) раскладываются так же, иначе текст и фото в них съезжают */
.card.has-rail > .media, .card.has-rail > .shade,
.card.has-rail > .gl-copy > .media, .card.has-rail > .gl-copy > .shade { bottom: var(--bar); }
.card.has-rail > .info, .card.has-rail > .gl-copy > .info { bottom: calc(var(--bar) + 14px); right: 16px; }
.card .rail { top: auto; left: 0; right: 0; bottom: 0; height: var(--bar); flex-direction: row; justify-content: center; align-items: center;
  gap: 14px; background: #000; z-index: 4; }
.card .rail button { gap: 0; }
.card .rail .ring { width: 56px; height: 56px; }
.card .rail .like .ring { width: 70px; height: 70px; }
.info-head { display: flex; align-items: center; gap: 10px; }
.info-head h2 { flex: 1; min-width: 0; }
.card-more { flex: none; width: 38px; height: 38px; border: 0; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .16); color: #fff; cursor: pointer; }
.card-more svg { width: 20px; height: 20px; fill: currentColor; stroke: none; }
.info.lean .goal.shared { background: var(--grad); color: #fff; }
.info.lean .prompt-mini { display: block; }
.info.lean .pm-text span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.more-link { display: inline-block; margin-top: 8px; padding: 6px 0; border: 0; background: none; color: #fff; font-size: 14px; font-weight: 800;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.liked-you.line { padding: 9px 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.liked-you.line p { display: inline; margin: 0; font-weight: 500; }
.liked-you.line p::before { content: ": "; }
.liked-you.line.open { white-space: normal; }
.menu-opt { display: flex; align-items: center; gap: 12px; text-align: left; }
.menu-opt i { flex: none; width: 24px; height: 24px; display: grid; place-items: center; }
.menu-opt i svg { width: 22px; height: 22px; }
.menu-opt span { display: flex; flex-direction: column; gap: 2px; }
.menu-opt.on b::after { content: " · вкл"; color: var(--ok, #33d69f); }
.menu-opt.hot b { color: var(--a1); }
.top-pill.dot { position: relative; }
.top-pill.dot::after { content: ""; position: absolute; top: 5px; right: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--a1); }
.status-line { margin: -4px 0 10px; color: var(--hint); }
html[data-theme="nf"] .card .rail { background: var(--bg); box-shadow: inset 0 2px 0 var(--line); }
html[data-theme="nf"] .card-more { border-radius: 0; background: var(--win); color: #000; box-shadow: var(--bevel); }
html[data-theme="nf"] .info.lean .goal.shared { background: var(--mag); color: #000; box-shadow: none; }
html[data-theme="nf"] .more-link { color: var(--cyan); font-family: var(--px); font-size: 10px; font-weight: 400; }
html[data-theme="nf"] .liked-you.line { padding: 9px 12px; }
html[data-theme="nf"] .liked-you.line::before { display: none; }
html[data-theme="nf"] .top-pill.dot::after { border-radius: 0; background: var(--mag); }


/* «Угадай, где ложь» в подробностях анкеты: крупно, заметнее вопросов (2026-11-14) */
.game-pill.big { display: flex; width: 100%; justify-content: center; margin: 4px 0 12px; padding: 18px 14px; border-radius: 16px;
  background: var(--grad); color: #fff; font-size: 19px; font-weight: 900; letter-spacing: .01em; }
.game-pill.big.done { background: var(--surface2); color: var(--text); font-size: 16px; }
html[data-theme="nf"] .game-pill.big { padding: 18px 10px; background: var(--mag); color: #000; font-size: 17px; line-height: 1.3;
  box-shadow: inset -2px -2px 0 rgba(0, 0, 0, .55), inset 2px 2px 0 rgba(255, 255, 255, .7), 0 0 0 2px #000; }
html[data-theme="nf"] .game-pill.big.done { background: var(--win); font-size: 14px; box-shadow: var(--bevel); }

/* ================= отклик на действия (33-feel.js, его просьба 2026-11-15: «мало анимаций и отклика») ================= */

/* анкету тащат: вариант 2 «Глитч» (33-feel.js). Слои: два цветовых канала, полосы строк, отсвет сбоку, «> like_» в углу */
.gl-copy { position: absolute; inset: 0; overflow: hidden; pointer-events: none; background: #000; }
.gl-chan { mix-blend-mode: screen; opacity: 0; background: transparent; }
.gl-chan.r { filter: grayscale(1) brightness(1.4) sepia(1) saturate(9) hue-rotate(255deg); }
.gl-chan.b { filter: grayscale(1) brightness(1.4) sepia(1) saturate(9) hue-rotate(140deg); }
.gl-slice { visibility: hidden; }
.card.gl-torn > .gl-slice { visibility: visible; }
.card.gl-torn > :not(.gl-copy):not(.gl-tint):not(.gl-term) { visibility: hidden; }
.card.gl-torn { background: transparent; }
.card.gl-out { z-index: 3; pointer-events: none; }
.gl-tint { position: absolute; inset: 0; z-index: 7; pointer-events: none; opacity: 0; }
.gl-term { position: absolute; top: 96px; z-index: 8; pointer-events: none; padding: 7px 10px; background: #000; opacity: 0;
  font: 900 22px/1 ui-monospace, Menlo, monospace; }
.gl-term.like { left: 16px; color: var(--a1); box-shadow: 0 0 0 2px var(--a1); }
.gl-term.skip { right: 16px; color: var(--a2); box-shadow: 0 0 0 2px var(--a2); }
html[data-theme="nf"] .gl-term { font: 17px/1 var(--px); }
html[data-theme="nf"] .gl-term.like { color: var(--mag); box-shadow: 0 0 0 2px var(--mag), 4px 4px 0 rgba(0, 0, 0, .6); }
html[data-theme="nf"] .gl-term.skip { color: var(--cyan); box-shadow: 0 0 0 2px var(--cyan), 4px 4px 0 rgba(0, 0, 0, .6); }

/* «Неформал»: нажатая кнопка вдавливается, как в Windows 98 */
html[data-theme="nf"] .nf-press { --bevel: var(--sunken); translate: 1px 1px; }

/* наведение мышкой на компьютере */
@media (hover: hover) and (pointer: fine) {
  .btn, .chip, .opt, .top-pill, .icon-btn, .perk, .match-row, .pick, .ib-card, .card-more, .empty-act, .tabs button, .nf-task button {
    transition: filter .15s, background-color .15s, color .15s, box-shadow .15s; }
  .btn:hover, .chip:hover, .top-pill:hover, .icon-btn:hover, .card-more:hover, .empty-act:hover { filter: brightness(1.12); }
  .opt:hover, .perk:hover, .match-row:hover, .ib-card:hover, .pick:hover { filter: brightness(1.15); }
  .tabs button:hover { color: var(--text); }
  .more-link:hover { text-decoration: underline; }
  .rail button .ring { transition: transform .18s cubic-bezier(.2, 1.4, .4, 1), filter .15s; }
  .rail button:hover .ring { transform: translateY(-3px) scale(1.07); filter: brightness(1.12); }
  .rail button:hover:active .ring { transform: scale(.9); }
  .card .info { cursor: auto; }
  #stage .card { cursor: grab; }
  #stage .card.dragging { cursor: grabbing; }
  html[data-theme="nf"] .btn:hover, html[data-theme="nf"] .tabs button:hover, html[data-theme="nf"] .nf-task button:hover,
  html[data-theme="nf"] .rail button:hover .ring, html[data-theme="nf"] .icon-btn:hover, html[data-theme="nf"] .card-more:hover { filter: none; background-color: #d9dde0; }
}

/* мэтч: пиксельные сердца разлетаются от модема (31-nfanim.js) */
html[data-theme="nf"] .nf-mrow { position: relative; }
html[data-theme="nf"] .nf-fx.in-match { position: absolute; inset: 0; overflow: visible; z-index: 2; }
html[data-theme="nf"] .nf-fx.in-match .nf-bit { top: 50%; }

/* чат: сообщение появляется с подскоком, «печатает…», вторая галочка дорисовывается при прочтении */
.bubble.pop { transform-origin: 0 100%; animation: bubIn .3s cubic-bezier(.2, 1.3, .4, 1) both; }
.bubble.mine.pop { transform-origin: 100% 100%; }
@keyframes bubIn { from { transform: translateY(10px) scale(.9); opacity: 0; } }
.meta .ticks { display: inline-block; width: 17px; height: 11px; margin-left: 4px; vertical-align: -1px; }
.meta .ticks svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.meta .ticks .t2 { stroke-dasharray: 16; stroke-dashoffset: 16; transition: stroke-dashoffset .4s ease-out .05s; }
.meta.read .ticks .t2 { stroke-dashoffset: 0; }
.meta.read .ticks { color: #8ff0ff; }
.typing { align-self: flex-start; display: flex; gap: 5px; padding: 12px 14px; margin-top: 2px; border-radius: 20px; background: var(--surface2);
  animation: bubIn .25s ease-out both; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--hint); animation: tDot 1.1s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes tDot { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-5px); opacity: 1; } }
html[data-theme="nf"] .typing { border-radius: 0; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
html[data-theme="nf"] .typing i { border-radius: 0; background: var(--cyan); }
html[data-theme="nf"] .meta.read .ticks { color: var(--cyan); }

/* заготовки, пока грузится: лента, списки, переписка */
/* заготовка следующей анкеты: пока грузится и под анкетой, которую тащат (вместо черноты) */
.stage { isolation: isolate; }
.stage.loading::before, .stage.peek::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .07) 50%, transparent 70%) var(--surface);
  background-size: 250% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
/* «Неформал»: под анкетой чёрная консоль с командами (его просьба 2026-11-15, вместо фиолетового) */
html[data-theme="nf"] .stage.loading::before, html[data-theme="nf"] .stage.peek::before {
  content: "C:\\2+1> scan --nearby\A searching souls...\A found: 1 new\A\A C:\\2+1> ping HEART.DLL\A reply: 2 ms  [ OK ]\A\A C:\\2+1> load SOUL_NEXT.DAT\A ########--  80%\A\A C:\\2+1> _";
  display: block; padding: 76px 18px 0; white-space: pre; text-align: left; overflow: hidden;
  background: repeating-linear-gradient(0deg, rgba(var(--cyan-rgb), .035) 0 1px, transparent 1px 3px), #000;
  color: var(--cyan); font: 10px/2 var(--px); text-shadow: 0 0 6px rgba(var(--cyan-rgb), .45); animation: none; }
.skel { display: flex; flex-direction: column; gap: 10px; }
.skel-row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 18px; background: var(--surface); }
.skel-row .skel-ava { flex: none; width: 48px; height: 48px; border-radius: 50%; }
.skel-row div { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.skel i { display: block; height: 12px; border-radius: 6px; background: linear-gradient(100deg, var(--surface2) 30%, rgba(255, 255, 255, .12) 50%, var(--surface2) 70%);
  background-size: 250% 100%; animation: shimmer 1.2s linear infinite; }
.skel-row i.short { width: 55%; }
.skel.bubbles { padding: 8px 0; }
.skel-bub { align-self: flex-start; width: 58%; }
.skel-bub.mine { align-self: flex-end; width: 44%; }
.skel-bub i { height: 38px; border-radius: 18px; }
html[data-theme="nf"] .skel-row { border-radius: 0; box-shadow: inset 0 0 0 1px var(--line); }
html[data-theme="nf"] .skel i, html[data-theme="nf"] .skel-row .skel-ava { border-radius: 0; }

/* счётчик пришёл: значок подпрыгивает (JS) и расходится кольцом */
.badge.ping::after, .nf-task sup.ping::after { content: ""; position: absolute; inset: 0; border-radius: inherit; animation: ping 1s ease-out 2; }
.nf-task sup.ping { position: relative; }
@keyframes ping { from { box-shadow: 0 0 0 0 var(--a1); } to { box-shadow: 0 0 0 10px transparent; } }
html[data-theme="nf"] .badge.ping::after, html[data-theme="nf"] .nf-task sup.ping::after { animation-name: nfPing; }
@keyframes nfPing { from { box-shadow: 0 0 0 0 var(--mag); } to { box-shadow: 0 0 0 8px transparent; } }

/* выбор фона в настройках (85-settings.js) */
.wall-pick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.wall-pick button { display: flex; flex-direction: column; gap: 6px; padding: 4px 4px 8px; border: 0; background: var(--surface); color: var(--text); box-shadow: var(--bevel, none); cursor: pointer; font: inherit; }
.wall-pick button img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.wall-pick button.on { box-shadow: 0 0 0 2px var(--cyan), 0 0 14px rgba(var(--cyan-rgb), .45); }
.wall-pick span { font: 9px/1 var(--px, ui-monospace); }


/* значок общего чата (клуб, движ) вместо фото в «Симпатиях» */
.match-row .room-ico { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--surface2); color: var(--text); }
.match-row .room-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
html[data-theme="nf"] .match-row .room-ico { border-radius: 0; box-shadow: inset 0 0 0 2px var(--line); }

/* серые пояснения убраны везде: под пунктами меню, переключателями настроек и заголовками (его слово 2026-11-15).
   Состояния (счётчики, «можно крутить», «есть») остаются: они в .perk small и в строках списков */
.opt small, .row-toggle small, p.sub, .set-sub, p.hint { display: none !important; }
.hero p.sub { display: block !important; }        /* «Ищу людей рядом...» это заставка, не пояснение */
