/* Взаимно — экран «Взаимно» (подпись приложения, часть Г). Разметка — /ui/match.js. Всегда «сумерки» (тёмный),
   в обеих темах: это вечерний, праздничный момент. Капсула O. Message справа сверху — поэтому «закрыть» слева. */

.mt-wrap { position: fixed; inset: 0; z-index: 300; display: flex; flex-direction: column; overflow: hidden; color: var(--on-plum);
  background: radial-gradient(120% 75% at 50% 28%, #33194F 0%, #1A0E26 55%, #0E0716 100%); animation: mt-in .35s var(--ease) both;
  font-family: var(--font); }
@keyframes mt-in { from { opacity: 0; } }
.mt-sky { position: absolute; inset: 0; pointer-events: none; }
.mt-blob { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; filter: blur(70px); opacity: .42; }
.mt-blob.a { left: -38vmax; top: -10vmax; background: #FF7A4D; animation: mt-drift 9s ease-in-out infinite alternate; }
.mt-blob.v { right: -38vmax; top: 6vmax; background: #6A48F4; animation: mt-drift 11s ease-in-out infinite alternate-reverse; }
.mt-blob.b { left: 15vmax; bottom: -55vmax; background: #E0357A; opacity: .3; animation: mt-drift 13s ease-in-out infinite alternate; }
@keyframes mt-drift { to { transform: translate(6vmax, 4vmax) scale(1.1); } }

.mt-x { position: absolute; top: 12px; left: 12px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08); color: #fff; display: grid; place-items: center; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }

.mt-body { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 56px 24px 8px; text-align: center; }
/* пара фото: кружки 150 px, заходят друг на друга на 60 px — как половинки знака; в пересечении — сердце */
.mt-pair { position: relative; width: 240px; height: 170px; flex: none; }
.mt-ph { position: absolute; top: 10px; width: 150px; height: 150px; border-radius: 50%; padding: 4px; }
.mt-ph img, .mt-ph span { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: grid; place-items: center;
  border: 3px solid #1A0E26; background: #2A1640; font: italic 700 56px/1 var(--font-display); color: #fff; }
.mt-me { left: 0; background: linear-gradient(135deg, #FFB08A, #FF7448); animation: mt-l .9s cubic-bezier(.2,1.15,.3,1) both;
  box-shadow: 0 18px 50px -12px rgba(255,116,72,.55); }
.mt-them { right: 0; background: linear-gradient(135deg, #9C80FF, #6A48F4); animation: mt-r .9s cubic-bezier(.2,1.15,.3,1) both;
  box-shadow: 0 18px 50px -12px rgba(106,72,244,.6); }
@keyframes mt-l { from { transform: translateX(-75vw) rotate(-28deg); } }
@keyframes mt-r { from { transform: translateX(75vw) rotate(28deg); } }
.mt-heart { position: absolute; left: 50%; top: 85px; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; z-index: 2;
  display: grid; place-items: center; background: linear-gradient(140deg, #F4558D, #D1246A); border: 3px solid #1A0E26;
  box-shadow: 0 0 0 0 rgba(224,53,122,.6), 0 10px 30px -6px rgba(224,53,122,.9);
  animation: mt-pop .7s .72s cubic-bezier(.3,1.6,.5,1) both, mt-beat 1.6s 1.6s ease-in-out infinite; }
@keyframes mt-pop { from { transform: scale(0) rotate(-30deg); } }
@keyframes mt-beat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.14); } 24% { transform: scale(1); } 36% { transform: scale(1.08); } }

.mt-title { margin: 22px 0 0; font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: clamp(50px, 15vw, 68px); line-height: 1.05; }
.mt-title span { display: inline-block; padding: 0 .12em .06em; background: linear-gradient(100deg, #FFB08A 0%, #FF6F96 48%, #B9A5FF 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: mt-write 1s .55s var(--ease) both; }
@keyframes mt-write { from { clip-path: inset(0 100% 0 0); transform: translateY(10px); } to { clip-path: inset(0 -10% 0 0); transform: none; } }
.mt-sub { margin-top: 8px; font-size: 16.5px; color: var(--on-plum-muted); max-width: 320px; animation: mt-fade .5s 1s both; }
.mt-common { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 14px; animation: mt-fade .5s 1.15s both; }
.mt-common > span { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 12px; border-radius: 999px; font-size: 13px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); color: #fff; }
.mt-common .ic { color: #FFB3CF; }
@keyframes mt-fade { from { opacity: 0; transform: translateY(8px); } }

.mt-foot { position: relative; width: 100%; max-width: 520px; margin: 0 auto; padding: 12px 16px calc(14px + env(safe-area-inset-bottom));
  animation: mt-fade .55s 1.2s both; }
.mt-openers { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 10px; margin: 0 -16px; padding-inline: 16px; }
.mt-openers::-webkit-scrollbar { display: none; }
.mt-op { flex: none; white-space: nowrap; height: 38px; padding: 0 15px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.07); color: #fff; font: 400 14px/1 var(--font); transition: background .2s, transform .2s var(--ease-spring); }
.mt-op:active { transform: scale(.96); background: rgba(255,255,255,.16); }
.mt-write { display: flex; align-items: center; gap: 8px; padding: 5px 5px 5px 18px; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); }
.mt-write:focus-within { border-color: rgba(255,179,207,.7); box-shadow: 0 0 0 3px rgba(224,53,122,.25); }
.mt-write input { flex: 1; min-width: 0; height: 40px; border: 0; outline: none; background: none; color: #fff; font-size: 16px; }
.mt-write input::placeholder { color: rgba(251,246,255,.55); }
.mt-send { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; color: #fff; background: var(--grad-like); display: grid; place-items: center;
  box-shadow: var(--glow-like); transition: transform .2s var(--ease-spring), opacity .2s; }
.mt-send:disabled { opacity: .4; box-shadow: none; }
.mt-send:not(:disabled):active { transform: scale(.9); }
.mt-links { display: flex; justify-content: center; gap: 10px; margin-top: 8px; }
.mt-link { background: none; border: 0; color: var(--on-plum-muted); font: 500 15px/1 var(--font); padding: 12px 10px; border-radius: 999px; }
.mt-link:hover { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .mt-blob, .mt-heart { animation: none !important; }
  .mt-me, .mt-them, .mt-title span, .mt-sub, .mt-common, .mt-foot { animation: none !important; }
}
