/* «Тайная комната» (04.10, по макету владельца): тёмная будуарная сцена, заголовки с засечками (Playfair Display),
   фирменный розовый --accent (#D63384) и его производные, премиальные карточки подарков с объёмными картинками. */
.mt-body { --mt-accent: var(--accent, #D63384); --mt-accent-2: #8a2be2; --mt-rose: #ff5fa2; --mt-wine: #5a1238;
    --mt-bg: #0f0a12; --mt-surface: rgba(30, 20, 34, .78); --mt-surface-2: rgba(44, 30, 50, .82); --mt-line: rgba(255, 170, 210, .12);
    --mt-text: #f6eef6; --mt-text-2: #c4b3c8; --mt-gold: #ffcf6b; --mt-radius: 22px;
    --mt-serif: 'Inter', sans-serif;   /* 04.10: шрифт сайта (засечки с макета владелец отклонил) */ }

.mt-app { position: relative; isolation: isolate; min-height: calc(100dvh - 140px); margin: 0 auto; padding: 0 0 28px; max-width: 1180px;
    box-sizing: border-box; color: var(--mt-text); border-radius: 28px; overflow: hidden; background: var(--mt-bg); }
@media (max-width: 768px) { .mt-app { border-radius: 22px; margin: 0 6px; } }

.mt-bg { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.mt-bg i { position: absolute; bottom: -10px; width: 4px; height: 4px; border-radius: 50%; background: var(--mt-rose);
    box-shadow: 0 0 10px 2px rgba(255, 95, 162, .55); opacity: 0; animation: mtFloat 14s linear infinite; }
.mt-bg i:nth-child(1) { left: 8%; } .mt-bg i:nth-child(2) { left: 22%; animation-delay: 3.5s; width: 3px; height: 3px; }
.mt-bg i:nth-child(3) { left: 37%; animation-delay: 7s; } .mt-bg i:nth-child(4) { left: 52%; animation-delay: 1.8s; width: 2px; height: 2px; }
.mt-bg i:nth-child(5) { left: 66%; animation-delay: 9s; } .mt-bg i:nth-child(6) { left: 78%; animation-delay: 5s; width: 3px; height: 3px; }
.mt-bg i:nth-child(7) { left: 89%; animation-delay: 11s; } .mt-bg i:nth-child(8) { left: 45%; animation-delay: 12.5s; width: 2px; height: 2px; }
@keyframes mtFloat { 0% { transform: translateY(0); opacity: 0; } 12% { opacity: .7; } 80% { opacity: .35; } 100% { transform: translate(18px, -105vh); opacity: 0; } }

.mt-stage { position: relative; z-index: 2; display: none; flex-direction: column; align-items: center; }
.mt-app[data-state="landing"] .mt-landing, .mt-app[data-state="search"] .mt-search, .mt-app[data-state="chat"] .mt-chat { display: flex; animation: mtIn .45s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes mtIn { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }

/* ---------- главная Комнаты ---------- */
.mt-hero { position: relative; width: 100%; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 10px; min-height: 470px;
    padding: 46px 48px 30px; box-sizing: border-box;
    background: linear-gradient(90deg, rgba(15, 10, 18, .96) 0%, rgba(15, 10, 18, .78) 38%, rgba(15, 10, 18, .15) 70%, rgba(15, 10, 18, .35) 100%),
                linear-gradient(0deg, var(--mt-bg) 0%, transparent 30%), var(--mt-scene-wide, var(--mt-scene)) center right / cover no-repeat; }
.mt-hero-text { text-align: left; max-width: 560px; }
.mt-title { font-family: var(--mt-serif); font-size: clamp(32px, 4.4vw, 52px); font-weight: 800; line-height: 1.1; margin: 0 0 12px; letter-spacing: -.02em;
    background-image: linear-gradient(180deg, #fff 0%, #ffd3e7 45%, #ff6aa8 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 6px 30px rgba(255, 80, 150, .35)); }
.mt-lead { font-family: var(--mt-serif); font-size: clamp(18px, 2vw, 22px); font-weight: 700; margin: 0 0 14px; color: #fff; }
.mt-sub { margin: 0 0 26px; color: var(--mt-text-2); line-height: 1.6; font-size: 17px; }
.mt-soon { padding: 14px 18px; border-radius: 16px; background: var(--mt-surface); border: 1px solid var(--mt-line); color: var(--mt-text-2); display: inline-block; }
.mt-door { display: none; }   /* дверь — на фото сцены; при открытии — вспышка света (.mt-opening::after) */
.mt-door-frame { position: absolute; inset: 0; border-radius: 96px 96px 10px 10px; overflow: hidden; background: linear-gradient(180deg, #2a1d33, #1a1220); }
.mt-door-light { position: absolute; inset: 0; background: radial-gradient(60% 55% at 50% 55%, #ffe3f0, #ff6aa6 45%, rgba(214, 51, 132, 0) 75%); opacity: .35; }
.mt-door-leaf { position: absolute; top: 0; bottom: 0; width: 50%; background: linear-gradient(180deg, #3a2747, #22172b); transition: transform .65s cubic-bezier(.3, .7, .2, 1); }
.mt-door-left { left: 0; transform-origin: left center; } .mt-door-right { right: 0; transform-origin: right center; }
.mt-door-slit { position: absolute; left: 50%; top: 8%; bottom: 0; width: 2px; transform: translateX(-50%); background: linear-gradient(180deg, transparent, #ffe6f2, #ff9cc8); }
.mt-door-floor { display: none; }
.mt-app.mt-opening .mt-door-left { transform: rotateY(-62deg); } .mt-app.mt-opening .mt-door-right { transform: rotateY(62deg); }
.mt-app.mt-opening .mt-door-light { opacity: 1; transition: opacity .4s; }
.mt-app.mt-opening::after { content: ''; position: absolute; inset: 0; z-index: 30; pointer-events: none;
    background: radial-gradient(circle at 70% 35%, rgba(255, 230, 242, .95), rgba(255, 95, 162, .35) 35%, transparent 70%); animation: mtFlare .6s ease-out forwards; }
@keyframes mtFlare { 0% { opacity: 0; } 55% { opacity: 1; } 100% { opacity: 0; } }

/* кнопки */
.mt-cta { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-width: 240px; height: 60px; padding: 0 34px;
    border: 0; border-radius: 999px; cursor: pointer; text-decoration: none; color: #fff; font-weight: 600; font-size: 19px; line-height: 1; font-family: inherit;
    background-image: linear-gradient(180deg, #ff6fae 0%, #e8448f 55%, #c42e78 100%);
    box-shadow: 0 16px 40px -12px rgba(230, 60, 140, .85), inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -2px 0 rgba(0, 0, 0, .15);
    transition: transform .15s, box-shadow .25s, filter .2s; overflow: hidden; }
.mt-cta::before { content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; transform: skewX(-20deg);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent); animation: mtShine 6s ease-in-out infinite 2s; }
@keyframes mtShine { 0%, 82% { left: -60%; } 100% { left: 130%; } }
.mt-cta:hover { filter: brightness(1.07); box-shadow: 0 20px 46px -12px rgba(230, 60, 140, 1), inset 0 1px 0 rgba(255, 255, 255, .35); }
.mt-cta:active { transform: scale(.97); }
.mt-cta[disabled] { opacity: .6; pointer-events: none; }
.mt-cta svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.mt-cta .mt-cta-heart { width: 20px; height: 20px; stroke-width: 2; }
.mt-cta-sm { min-width: 0; height: 50px; font-size: 16px; padding: 0 24px; }
.mt-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 50px; padding: 0 24px; border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04); color: var(--mt-text); font-weight: 500; font-size: 15px; font-family: inherit; cursor: pointer;
    transition: background .2s, transform .15s; }
.mt-ghost:hover { background: rgba(255, 255, 255, .08); } .mt-ghost:active { transform: scale(.97); }
.mt-ghost .mt-moon { width: 20px; height: 20px; fill: #f6eef6; }
.mt-link { margin-top: 12px; background: none; border: 0; color: var(--mt-rose); font-weight: 500; font-size: 14px; font-family: inherit; cursor: pointer;
    text-decoration: underline; text-decoration-color: rgba(255, 95, 162, .4); text-underline-offset: 4px; }
.mt-link:hover { color: #fff; }
.mt-doors-note { margin-top: 12px; font-size: 13px; color: var(--mt-text-2); }
.mt-privacy { margin: 18px 0 0; font-size: 12px; color: rgba(196, 179, 200, .7); text-align: center; }

.mt-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 18px; padding: 0; margin: 26px 0 0; }
.mt-chips li { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--mt-text-2); }
.mt-chip-ico { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #ff8cc0;
    background: rgba(255, 95, 162, .12); border: 1px solid rgba(255, 95, 162, .35); box-shadow: 0 0 18px -6px rgba(255, 95, 162, .8); }
.mt-chip-ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mt-chip-18 { font-weight: 800; font-size: 13px; color: #ff8cc0; }

/* настроение */
.mt-moods-wrap { width: 100%; padding: 6px 48px 0; box-sizing: border-box; text-align: center; }
.mt-h2 { font-family: var(--mt-serif); font-size: clamp(20px, 2.2vw, 24px); font-weight: 700; margin: 8px 0 20px; color: #fff; text-align: center; }
.mt-moods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mt-mood-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 24px 22px 22px; border-radius: var(--mt-radius); cursor: pointer;
    background: linear-gradient(180deg, rgba(60, 26, 50, .6), rgba(25, 16, 28, .85)); border: 1px solid rgba(255, 140, 195, .22); color: var(--mt-text); font-family: inherit;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 20px 40px -26px rgba(255, 60, 140, .6); transition: transform .18s, border-color .25s, box-shadow .25s, opacity .3s;
    -webkit-tap-highlight-color: transparent; }
.mt-mood-card:hover { border-color: rgba(255, 120, 185, .6); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 22px 44px -20px rgba(255, 60, 140, .9); transform: translateY(-2px); }
.mt-mood-card:active { transform: scale(.98); }
.mt-mood-card b { font-family: var(--mt-serif); font-size: 19px; font-weight: 700; } .mt-mood-card small { color: var(--mt-text-2); font-size: 14px; line-height: 1.45; max-width: 220px; }
.mt-mood-ico { width: 62px; height: 62px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.mt-mood-ico svg { width: 58px; height: 58px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 6px 16px rgba(255, 70, 150, .55)); }
.mt-mood-ico .fill { fill: currentColor; stroke: none; }
.mt-mi-talk { color: #ff6fae; } .mt-mi-flirt { color: #ff5b6e; } .mt-mi-surprise { color: #b98aff; }
.mt-mi-flirt svg { fill: url(#mtFlame); } .mt-mi-surprise svg .fill { fill: url(#mtMaskG); }
.mt-chev { position: absolute; right: 18px; top: 50%; width: 9px; height: 9px; border-right: 2px solid rgba(255, 255, 255, .45); border-top: 2px solid rgba(255, 255, 255, .45);
    transform: translateY(-50%) rotate(45deg); }
.mt-moods.mt-picked .mt-mood-card:not(.mt-sel) { opacity: .25; transform: scale(.97); pointer-events: none; }
.mt-mood-card.mt-sel { border-color: var(--mt-rose); box-shadow: 0 0 0 1px var(--mt-rose), 0 18px 46px -14px rgba(255, 60, 140, 1); }
.mt-moods-wrap.mt-attn .mt-mood-card { animation: mtAttn 1s ease-out 1; }
@keyframes mtAttn { 40% { border-color: var(--mt-rose); box-shadow: 0 0 0 1px var(--mt-rose), 0 0 40px -6px rgba(255, 60, 140, .9); } }

/* сохранённые встречи */
.mt-saved { width: 100%; max-width: 640px; margin: 26px auto 0; padding: 0 16px; box-sizing: border-box; }
.mt-saved-title { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--mt-text-2); margin: 0 4px 10px; }
.mt-saved-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 13px; margin-bottom: 8px; border-radius: 18px;
    background: var(--mt-surface); border: 1px solid var(--mt-line); color: var(--mt-text); cursor: pointer; text-align: left; font-family: inherit; }
.mt-saved-item:hover { border-color: rgba(255, 95, 162, .45); }
.mt-saved-item b { display: block; font-family: var(--mt-serif); font-size: 15px; font-weight: 700; }
.mt-saved-item small { display: block; color: var(--mt-text-2); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60vw; }

/* «каждая встреча — новая история» */
.mt-story-card { position: relative; display: grid; grid-template-columns: 110px 1fr 150px auto; align-items: center; gap: 18px; width: calc(100% - 96px); margin: 26px 48px 0;
    padding: 18px 26px; box-sizing: border-box; border-radius: 26px; background: linear-gradient(90deg, rgba(55, 22, 44, .85), rgba(28, 16, 30, .9));
    border: 1px solid rgba(255, 140, 195, .2); }
.mt-story-key, .mt-story-letter { height: 86px; background: center / contain no-repeat; mix-blend-mode: lighten; }
.mt-story-key { background-image: var(--mt-key); } .mt-story-letter { background-image: var(--mt-letter); transform: rotate(-8deg); }
.mt-story-txt b { display: block; font-family: var(--mt-serif); font-size: 18px; font-weight: 700; color: #ff7fb6; margin-bottom: 6px; }
.mt-story-txt span { color: var(--mt-text-2); font-size: 14px; line-height: 1.5; }
.mt-story-more small { display: block; font-size: 13px; color: var(--mt-text-2); max-width: 190px; }
.mt-story-more .mt-link { margin-top: 6px; }

/* ---------- поиск ---------- */
.mt-search { padding: 40px 16px; text-align: center; background: radial-gradient(70% 60% at 50% 30%, rgba(214, 51, 132, .22), transparent 70%); }
.mt-keyhole { position: relative; width: 160px; height: 200px; margin: 10px auto 6px; }
.mt-keyhole-glow { position: absolute; inset: 10px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 140, 195, .55), transparent); animation: mtBreath 2.8s ease-in-out infinite; }
@keyframes mtBreath { 0%, 100% { opacity: .35; } 50% { opacity: .8; } }
.mt-keyhole-shape { position: absolute; left: 50%; top: 50%; width: 60px; height: 100px; transform: translate(-50%, -50%); fill: #0b070e; filter: drop-shadow(0 0 14px rgba(255, 106, 166, .75)); }
.mt-dot { position: absolute; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: #fff; box-shadow: 0 0 14px 4px var(--mt-rose); }
.mt-dot-a { left: 0; animation: mtDotA 3.2s ease-in-out infinite; } .mt-dot-b { right: 0; animation: mtDotB 3.2s ease-in-out infinite; }
@keyframes mtDotA { 0%, 100% { transform: translate(0, -30px); opacity: .4; } 50% { transform: translate(56px, 0); opacity: 1; } }
@keyframes mtDotB { 0%, 100% { transform: translate(0, 30px); opacity: .4; } 50% { transform: translate(-56px, 0); opacity: 1; } }
.mt-search-sub { color: var(--mt-text-2); margin: 0 0 6px; min-height: 22px; }
.mt-search-count { font-size: 13px; color: #ffb3d4; margin: 4px 0 10px; }
.mt-search .mt-ghost { margin-top: 18px; }
.mt-search-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 14px; color: var(--mt-text-2); }

/* медальон маски */
.mt-medal { position: relative; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #5a2f5c, #1e1426 70%); box-shadow: inset 0 0 0 1.5px rgba(255, 170, 210, .4), 0 6px 18px -8px rgba(214, 51, 132, .8); }
.mt-medal svg { width: 58%; height: 58%; fill: url(#mtGradCommon); stroke: none; }
.mt-medal[data-rarity="rare"] { box-shadow: inset 0 0 0 1.5px rgba(160, 120, 255, .6), 0 6px 18px -6px rgba(138, 43, 226, .9); }
.mt-medal-head { width: 52px; height: 52px; box-shadow: 0 0 0 2px rgba(255, 95, 162, .55), 0 0 22px -4px rgba(255, 95, 162, .8); }
.mt-medal-xl { width: 100px; height: 100px; }
.mt-medal.mt-keyglow::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--mt-gold); box-shadow: 0 0 18px var(--mt-gold); animation: mtRing 2.4s ease-out forwards; }
@keyframes mtRing { 0% { opacity: 0; transform: scale(.8); } 30% { opacity: 1; } 100% { opacity: 0; transform: scale(1.25); } }
.mt-medal .mt-crown { position: absolute; top: -22px; left: 50%; width: 34px; height: 34px; transform: translateX(-50%); animation: mtCrown 3s ease-out forwards; }
.mt-medal .mt-crown img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: lighten; }
@keyframes mtCrown { 0% { opacity: 0; transform: translate(-50%, 8px) scale(.6); } 20% { opacity: 1; transform: translate(-50%, 0) scale(1.05); } 80% { opacity: 1; } 100% { opacity: 0; } }

/* переход «встреча состоялась» */
.mt-flash { position: absolute; inset: 0; z-index: 40; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    background: radial-gradient(circle at 50% 45%, rgba(214, 51, 132, .35), rgba(15, 10, 18, .97) 60%); }
.mt-flash[hidden] { display: none; }
.mt-flash-dots { position: absolute; top: 45%; left: 50%; width: 0; height: 0; }
.mt-flash-dots i { position: absolute; width: 12px; height: 12px; margin: -6px; border-radius: 50%; background: #fff; box-shadow: 0 0 18px 6px var(--mt-rose); }
.mt-flash-dots i:first-child { animation: mtMeetA .55s ease-in forwards; } .mt-flash-dots i:last-child { animation: mtMeetB .55s ease-in forwards; }
@keyframes mtMeetA { from { transform: translateX(-120px); } to { transform: translateX(0); opacity: 0; } }
@keyframes mtMeetB { from { transform: translateX(120px); } to { transform: translateX(0); opacity: 0; } }
.mt-flash .mt-medal { animation: mtPop .5s .45s cubic-bezier(.2, 1.4, .4, 1) both; }
.mt-flash-title { font-family: var(--mt-serif); font-size: 22px; font-weight: 700; margin: 6px 0 0; animation: mtIn .4s .55s both; }
.mt-flash-sub { color: #ffd6ea; margin: 0; font-size: 17px; animation: mtIn .4s .65s both; }
@keyframes mtPop { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- встреча ---------- */
.mt-app[data-state="chat"] { padding: 0; max-width: 620px; border: 1px solid rgba(255, 140, 195, .16);
    background: radial-gradient(100% 60% at 50% 0%, rgba(90, 18, 56, .35), transparent 60%), #120c15; }
.mt-chat { width: 100%; height: calc(100dvh - 150px); min-height: 420px; align-items: stretch; }
.mt-chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 8px; border-bottom: 1px solid var(--mt-line);
    background: rgba(18, 12, 21, .75); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.mt-them { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.mt-them-txt b { display: block; font-family: var(--mt-serif); font-size: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt-them-txt small { display: block; font-size: 12px; color: var(--mt-text-2); }
.mt-them-txt small.mt-live { color: #7be3a8; } .mt-them-txt small.mt-lost { color: #ffcf8a; }
.mt-icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 0; background: transparent; color: var(--mt-text); cursor: pointer; display: inline-flex;
    align-items: center; justify-content: center; flex-shrink: 0; }
.mt-icon-btn:hover { background: rgba(255, 255, 255, .06); }
.mt-icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mt-icon-btn circle { fill: currentColor; stroke: none; }
.mt-gem-chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; font-size: 13px; font-weight: 700;
    color: #f6eef6; background: rgba(255, 255, 255, .05); border: 1px solid var(--mt-line); cursor: pointer; }
.mt-gem-chip svg { width: 14px; height: 14px; fill: #ff5fa2; stroke: none; }

.mt-messages { flex: 1; overflow-y: auto; padding: 14px 14px 8px; display: flex; flex-direction: column; overscroll-behavior: contain; transition: background .8s; }
.mt-msgs { display: flex; flex-direction: column; gap: 8px; }

/* Тайна встречи — карточка с подарочной коробкой */
.mt-secret { position: relative; z-index: 3; display: flex; align-items: center; gap: 14px; margin: 0 6% 14px; padding: 12px 16px 12px 12px; border-radius: 22px;
    background: linear-gradient(135deg, rgba(48, 22, 42, .95), rgba(28, 18, 34, .95)); border: 1px solid rgba(255, 140, 195, .25);
    box-shadow: 0 16px 34px -20px rgba(0, 0, 0, .9); }
.mt-secret[hidden] { display: none; }
.mt-secret-box { position: relative; flex-shrink: 0; width: 92px; height: 92px; border-radius: 16px; background: var(--mt-box) center / cover no-repeat;
    animation: mtIdle 7s ease-in-out infinite; }
@keyframes mtIdle { 0%, 100% { filter: brightness(.95); } 50% { filter: brightness(1.12) drop-shadow(0 0 14px rgba(255, 95, 162, .45)); } }
.mt-secret-spark { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px 3px var(--mt-rose); opacity: 0; }
.mt-secret-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mt-secret-title { font-family: var(--mt-serif); font-size: 17px; font-weight: 700; color: #fff; }
.mt-secret-txt { color: var(--mt-text-2); font-size: 15px; } .mt-secret-hint { color: rgba(196, 179, 200, .75); font-size: 12px; }
.mt-secret-btns { display: flex; gap: 8px; margin-top: 4px; }
.mt-secret[data-state="ready"] .mt-secret-txt, .mt-secret[data-state="invited"] .mt-secret-txt { color: #ffd6ea; font-weight: 600; }
.mt-secret[data-state="ready"] .mt-secret-hint, .mt-secret[data-state="invited"] .mt-secret-hint, .mt-secret[data-state="waiting"] .mt-secret-hint { display: none; }
.mt-secret[data-state="ready"] .mt-secret-box, .mt-secret[data-state="invited"] .mt-secret-box { animation: mtPulse .9s ease-out 1, mtIdle 3s ease-in-out infinite .9s; }
.mt-secret[data-state="ready"] .mt-secret-spark, .mt-secret[data-state="invited"] .mt-secret-spark { opacity: 1; animation: mtSpark 2.4s ease-in-out infinite; }
.mt-secret[data-state="ready"], .mt-secret[data-state="invited"] { border-color: rgba(255, 95, 162, .6); box-shadow: 0 0 34px -10px rgba(255, 95, 162, .8); }
@keyframes mtPulse { 0% { transform: scale(1); } 40% { transform: scale(1.1); } 100% { transform: scale(1); } }
@keyframes mtSpark { 0%, 100% { transform: scale(.6); opacity: .5; } 50% { transform: scale(1.1); opacity: 1; } }
.mt-secret-btn { height: 34px; padding: 0 16px; border-radius: 999px; border: 0; cursor: pointer; font-weight: 700; font-size: 13px; font-family: inherit; color: #fff;
    background-image: linear-gradient(180deg, #ff6fae, #d6377f); }
.mt-secret-no { background: rgba(255, 255, 255, .08); background-image: none; color: var(--mt-text-2); }
@media (max-width: 520px) { .mt-secret { margin: 0 0 12px; } .mt-secret-box { width: 64px; height: 64px; } .mt-secret-title { font-size: 18px; } .mt-secret-hint { display: none; } }

.mt-msg { position: relative; max-width: 80%; padding: 10px 14px 18px; border-radius: 18px; font-size: 15px; line-height: 1.45; word-wrap: break-word; white-space: pre-wrap;
    animation: mtMsg .25s ease-out both; min-width: 64px; box-sizing: border-box; }
.mt-msg time { position: absolute; right: 10px; bottom: 4px; font-size: 10px; opacity: .6; white-space: nowrap; }
@keyframes mtMsg { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.mt-msg.me { align-self: flex-end; color: #fff; border-bottom-right-radius: 6px; background-image: linear-gradient(135deg, #c8317a, #8e1f5c); box-shadow: 0 8px 20px -12px rgba(200, 49, 122, .9); }
.mt-msg.them { align-self: flex-start; background: rgba(48, 36, 54, .85); border: 1px solid rgba(255, 255, 255, .06); border-bottom-left-radius: 6px; }
.mt-msg.pending { opacity: .6; }
.mt-sys { align-self: center; max-width: 90%; text-align: center; font-size: 13px; color: var(--mt-text-2); padding: 4px 10px; }
.mt-event { align-self: stretch; margin: 6px 4px; padding: 16px 18px; border-radius: 20px; text-align: center;
    background: linear-gradient(135deg, rgba(214, 51, 132, .2), rgba(138, 43, 226, .16)); border: 1px solid rgba(255, 140, 195, .3); animation: mtUnfold .5s cubic-bezier(.2, .8, .2, 1) both; }
.mt-event small { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #ffb3d4; margin-bottom: 6px; }
.mt-event p { margin: 0; font-family: var(--mt-serif); font-size: 16px; font-weight: 600; line-height: 1.4; }
.mt-event em { display: block; margin-top: 8px; font-style: normal; font-size: 13px; color: var(--mt-text-2); }
@keyframes mtUnfold { from { opacity: 0; transform: perspective(500px) rotateX(-35deg) scale(.95); } to { opacity: 1; transform: none; } }
.mt-giftmsg { align-self: center; display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; border-radius: 18px; max-width: 92%;
    background: linear-gradient(135deg, rgba(60, 24, 48, .9), rgba(30, 18, 34, .9)); border: 1px solid rgba(255, 207, 107, .3); font-size: 14px; animation: mtUnfold .5s both; }
.mt-giftmsg img { width: 54px; height: 54px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.mt-giftmsg small { color: var(--mt-text-2); }
.mt-giftmsg.mt-letter { cursor: pointer; }
.mt-letter-text { margin-top: 8px; padding: 12px 14px; border-radius: 12px; background: #fbf3e6; color: #3a2a1a; font-family: Georgia, serif; font-size: 16px; line-height: 1.5; animation: mtUnfold .45s both; }

.mt-typing { display: flex; gap: 4px; padding: 0 20px 6px; } .mt-typing[hidden] { display: none; }
.mt-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--mt-text-2); animation: mtDots 1.2s infinite; }
.mt-typing i:nth-child(2) { animation-delay: .15s; } .mt-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes mtDots { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }

.mt-input { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--mt-line); background: rgba(18, 12, 21, .8); }
.mt-input textarea { flex: 1; min-height: 46px; max-height: 120px; resize: none; border-radius: 23px; padding: 12px 16px; box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .05); color: var(--mt-text); font-size: 15px; line-height: 1.4; font-family: inherit; outline: none; }
.mt-input textarea:focus { border-color: rgba(255, 95, 162, .55); }
.mt-gift-btn, .mt-send { width: 46px; height: 46px; flex-shrink: 0; border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.mt-gift-btn { border-radius: 14px; color: #fff; background-image: linear-gradient(180deg, #ff6fae, #d6377f); box-shadow: 0 8px 20px -8px rgba(230, 60, 140, .9); }
.mt-gift-btn svg, .mt-send svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mt-send { border-radius: 50%; color: #fff; background: rgba(255, 255, 255, .08); } .mt-send svg { width: 20px; height: 20px; }
.mt-send:active, .mt-gift-btn:active { transform: scale(.92); }
.mt-input.mt-off, .mt-gift-btn[disabled] { opacity: .45; pointer-events: none; }
.mt-chat[data-ended="1"] .mt-input, .mt-chat[data-ended="1"] .mt-giftbar { display: none; }

/* подарить анонимно */
.mt-giftbar { margin: 0 10px 10px; padding: 12px 12px 14px; border-radius: 22px; background: linear-gradient(180deg, rgba(34, 22, 38, .97), rgba(22, 14, 26, .97));
    border: 1px solid rgba(255, 140, 195, .18); animation: mtSheetUp .3s cubic-bezier(.2, .8, .2, 1) both; }
.mt-giftbar[hidden] { display: none; }
.mt-giftbar-head { display: flex; align-items: center; justify-content: space-between; margin: 0 4px 10px; }
.mt-giftbar-head b { font-size: 15px; font-weight: 600; }
.mt-giftbar-x { width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .06); color: #fff; font-size: 18px; cursor: pointer; }
.mt-giftbar-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.mt-gcard { flex: 0 0 104px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 8px 9px; border-radius: 18px;
    background: linear-gradient(180deg, rgba(60, 30, 54, .8), rgba(28, 18, 32, .95)); border: 1px solid rgba(255, 255, 255, .08); color: #f6eef6; cursor: pointer; font-family: inherit;
    transition: transform .15s, border-color .2s, box-shadow .2s; }
.mt-gcard:hover { border-color: rgba(255, 95, 162, .5); } .mt-gcard:active { transform: scale(.96); }
.mt-gcard img { width: 76px; height: 76px; object-fit: cover; border-radius: 14px; }
.mt-gcard b { font-size: 12px; font-weight: 500; line-height: 1.25; text-align: center; min-height: 30px; display: flex; align-items: center; }
.mt-gcard span { font-size: 13px; font-weight: 700; color: #ff5fa2; }
.mt-gcard[data-rarity="EPIC"] { border-color: rgba(180, 140, 255, .4); background: linear-gradient(180deg, rgba(70, 40, 110, .55), rgba(28, 18, 32, .95)); }
.mt-gcard[data-rarity="LEGENDARY"] { border-color: rgba(255, 207, 107, .5); background: linear-gradient(180deg, rgba(110, 76, 30, .45), rgba(28, 18, 32, .95));
    box-shadow: inset 0 0 22px -10px rgba(255, 207, 107, .8); }
.mt-gcard[data-rarity="LEGENDARY"] span { color: var(--mt-gold); }
.mt-gcard-more { justify-content: center; color: var(--mt-text-2); }
.mt-gcard-more i { font-size: 24px; letter-spacing: 2px; font-style: normal; color: #fff; }

/* решение в конце встречи */
.mt-decide { margin: 0 10px 12px; padding: 18px 16px 16px; border-radius: 22px; text-align: center; background: linear-gradient(180deg, rgba(48, 22, 42, .97), rgba(24, 15, 28, .97));
    border: 1px solid rgba(255, 140, 195, .28); animation: mtSheetUp .35s both; }
.mt-decide[hidden] { display: none; }
.mt-decide-title { display: block; font-family: var(--mt-serif); font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.mt-decide-sub { display: block; color: var(--mt-text-2); font-size: 14px; margin-bottom: 14px; }
.mt-decide-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mt-decide-btns .mt-cta, .mt-decide-btns .mt-ghost { width: 100%; min-width: 0; }
@media (max-width: 420px) { .mt-decide-btns { grid-template-columns: 1fr; } }
.mt-decide-after { display: flex; justify-content: center; }
.mt-mutual-heart { display: block; width: 74px; height: 74px; margin: 0 auto 8px; animation: mtPop .6s cubic-bezier(.2, 1.4, .4, 1) both; filter: drop-shadow(0 0 20px rgba(255, 106, 166, .9)); }

/* ---------- нижние панели ---------- */
.mt-sheet { position: fixed; inset: 0; z-index: 9500; display: flex; align-items: flex-end; justify-content: center; }
.mt-sheet[hidden] { display: none; }
.mt-sheet-backdrop { position: absolute; inset: 0; background: rgba(8, 5, 12, .62); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: mtFade .25s both; }
@keyframes mtFade { from { opacity: 0; } to { opacity: 1; } }
.mt-sheet-card { position: relative; width: 100%; max-width: 560px; max-height: 86vh; overflow-y: auto; box-sizing: border-box;
    padding: 24px 18px calc(18px + env(safe-area-inset-bottom, 0px)); border-radius: 26px 26px 0 0; color: #f6eef6;
    background: linear-gradient(180deg, #2a1a2e, #160e19); border: 1px solid rgba(255, 140, 195, .16); border-bottom: 0;
    box-shadow: 0 -20px 60px -20px rgba(214, 51, 132, .5); animation: mtSheetUp .32s cubic-bezier(.2, .8, .2, 1) both; font-family: 'Inter', sans-serif; }
@media (min-width: 769px) { .mt-sheet { align-items: center; } .mt-sheet-card { border-radius: 26px; border-bottom: 1px solid rgba(255, 140, 195, .16); } }
@keyframes mtSheetUp { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.mt-sheet-x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .07); color: #fff; font-size: 22px; cursor: pointer; }
.mt-sheet-body h3 { margin: 0 40px 8px 0; font-family: var(--mt-serif); font-size: 20px; font-weight: 700; }
.mt-sheet-body p { color: #c4b3c8; margin: 0 0 14px; line-height: 1.55; }
.mt-sheet-body .mt-cta { width: 100%; } .mt-sheet-body .mt-ghost { width: 100%; margin-top: 8px; }
.mt-opt-group { margin-bottom: 16px; } .mt-opt-group > b { display: block; font-size: 14px; margin-bottom: 8px; color: #e9dff0; }
.mt-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.mt-opt { padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .04); color: #f6eef6; font-weight: 600; font-size: 14px; font-family: inherit; cursor: pointer; }
.mt-opt.on { border-color: var(--mt-rose); background: rgba(255, 95, 162, .2); }
.mt-age { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: #c4b3c8; font-size: 14px; }
.mt-age input { width: 64px; height: 40px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .05); color: #fff; text-align: center; font-size: 15px; font-family: inherit; }
.mt-menu-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 12px; border: 0; border-radius: 14px; background: none; color: #f6eef6; font-weight: 600; font-size: 15px; font-family: inherit; cursor: pointer; text-align: left; }
.mt-menu-item:hover { background: rgba(255, 255, 255, .05); } .mt-menu-item.danger { color: #ff8fa8; }
.mt-reasons { display: grid; gap: 6px; margin-bottom: 12px; }
.mt-reasons label { display: flex; gap: 10px; align-items: center; padding: 11px 12px; border-radius: 12px; background: rgba(255, 255, 255, .04); cursor: pointer; font-size: 15px; }
.mt-gift-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mt-gift-grid .mt-gcard { flex: none; }
@media (min-width: 520px) { .mt-gift-grid { grid-template-columns: repeat(4, 1fr); } }
.mt-gift-confirm { margin-top: 14px; text-align: center; }
.mt-gift-confirm img { width: 120px; height: 120px; border-radius: 22px; object-fit: cover; box-shadow: 0 16px 40px -14px rgba(255, 95, 162, .8); }
.mt-gift-confirm h4 { font-family: var(--mt-serif); font-size: 19px; font-weight: 700; margin: 10px 0 2px; }
.mt-gift-confirm .mt-price { font-size: 24px; font-weight: 800; color: #fff; margin-bottom: 10px; }
.mt-gift-confirm textarea { width: 100%; box-sizing: border-box; min-height: 74px; border-radius: 14px; padding: 10px 12px; border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .05); color: #fff; font-size: 15px; line-height: 1.4; font-family: inherit; margin-bottom: 10px; }
.mt-bal { font-size: 13px; color: #c4b3c8; margin: -2px 0 12px; }

/* эффекты подарков */
.mt-fx { position: absolute; inset: 0; z-index: 35; pointer-events: none; overflow: hidden; }
.mt-fx-big { position: absolute; left: 50%; top: 42%; width: 170px; height: 170px; margin: -85px; animation: mtGiftPop 2s cubic-bezier(.2, 1, .3, 1) forwards; }
.mt-fx-big img { width: 100%; height: 100%; object-fit: cover; border-radius: 34px; mix-blend-mode: lighten;
    -webkit-mask-image: radial-gradient(circle, #000 55%, transparent 72%); mask-image: radial-gradient(circle, #000 55%, transparent 72%); }
@keyframes mtGiftPop { 0% { transform: translateY(80px) scale(.4); opacity: 0; } 25% { transform: translateY(0) scale(1.08); opacity: 1; }
    40% { transform: scale(1); } 80% { opacity: 1; } 100% { transform: translateY(-30px) scale(.9); opacity: 0; } }
.mt-petal { position: absolute; bottom: -20px; width: 16px; height: 22px; border-radius: 80% 0 80% 0; background: linear-gradient(135deg, #ff7aa8, #c2185b); opacity: .9; animation: mtPetal 2s ease-out forwards; }
@keyframes mtPetal { to { transform: translate(var(--dx, 40px), -110vh) rotate(540deg); opacity: 0; } }
.mt-fx-dark { position: absolute; inset: 0; background: radial-gradient(circle at 50% 42%, rgba(90, 18, 56, .35), rgba(5, 2, 8, .85)); animation: mtDark 2.2s ease forwards; }
@keyframes mtDark { 0% { opacity: 0; } 20%, 70% { opacity: 1; } 100% { opacity: 0; } }
.mt-spark { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px 3px #e9d4ff; animation: mtSparkFly 1.6s ease-out forwards; }
@keyframes mtSparkFly { from { transform: translate(0, 0) scale(1); opacity: 1; } to { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; } }
.mt-messages.mt-starsky { background: radial-gradient(ellipse at 50% 0%, #2b1a4a, #08060f 70%); }
.mt-star { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff; animation: mtTwinkle 2.6s ease-in-out forwards; }
@keyframes mtTwinkle { 0% { opacity: 0; } 30%, 70% { opacity: 1; } 100% { opacity: 0; } }
.mt-fx-eternal { position: absolute; inset: 0; pointer-events: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    background: radial-gradient(circle at 50% 45%, rgba(255, 106, 166, .45), rgba(10, 5, 14, .96) 65%); animation: mtEternal 3.6s ease forwards; color: #fff; }
.mt-fx-eternal img { width: 210px; height: 210px; object-fit: cover; border-radius: 50%; mix-blend-mode: lighten; animation: mtBeat 1.1s ease-in-out infinite;
    -webkit-mask-image: radial-gradient(circle, #000 55%, transparent 70%); mask-image: radial-gradient(circle, #000 55%, transparent 70%); }
.mt-fx-eternal b { font-family: var(--mt-serif); font-size: 22px; font-weight: 800; }
.mt-fx-eternal button { margin-top: 10px; background: none; border: 0; color: rgba(255, 255, 255, .7); font-size: 14px; font-family: inherit; cursor: pointer; }
@keyframes mtEternal { 0% { opacity: 0; } 10%, 85% { opacity: 1; } 100% { opacity: 0; } }
@keyframes mtBeat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.08); } 30% { transform: scale(1); } 45% { transform: scale(1.05); } }

.mt-toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 9600; max-width: calc(100vw - 32px);
    padding: 12px 18px; border-radius: 16px; background: #2a1a2e; color: #fff; border: 1px solid rgba(214, 51, 132, .4); font-size: 14px;
    box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .7); animation: mtSheetUp .25s both; }

/* в чате всё место под переписку: без нижнего меню и быстрых ссылок */
body.mt-in-chat .bottom-nav, body.mt-in-chat .quick-strip, body.mt-in-chat .page-back { display: none !important; }

/* ---------- телефон ---------- */
@media (max-width: 900px) {
    .mt-hero { grid-template-columns: 1fr; min-height: 0; padding: 30px 20px 18px; text-align: center;
        background: linear-gradient(180deg, rgba(15, 10, 18, .35) 0%, rgba(15, 10, 18, .75) 55%, var(--mt-bg) 100%), var(--mt-scene) center 30% / cover no-repeat; }
    .mt-hero-text { text-align: center; max-width: none; padding-top: 130px; }
    .mt-sub { font-size: 15px; margin-bottom: 18px; }
    .mt-lead { margin-bottom: 8px; }
    .mt-chips { justify-content: center; gap: 12px; }
    .mt-chips li { font-size: 13px; }
    .mt-moods-wrap { padding: 0 14px; }
    .mt-moods { grid-template-columns: 1fr; gap: 12px; }
    .mt-mood-card { flex-direction: row; text-align: left; padding: 16px 40px 16px 16px; gap: 14px; display: grid; grid-template-columns: 54px 1fr; grid-template-rows: auto auto; }
    .mt-mood-ico { grid-row: 1 / 3; width: 54px; height: 54px; margin: 0; } .mt-mood-ico svg { width: 46px; height: 46px; }
    .mt-mood-card b { font-size: 18px; align-self: end; } .mt-mood-card small { max-width: none; align-self: start; }
    .mt-story-card { grid-template-columns: 70px 1fr; width: calc(100% - 28px); margin: 22px 14px 0; padding: 16px; gap: 12px; }
    .mt-story-key { height: 64px; } .mt-story-letter { display: none; } .mt-story-more { grid-column: 1 / -1; text-align: center; }
    .mt-story-more small { max-width: none; } .mt-story-txt b { font-size: 17px; }
}
@media (max-width: 768px) {
    body.mt-in-chat .main { padding-bottom: 0 !important; }
    body.mt-in-chat .mt-app { margin: 0; border-radius: 0; border: 0; }
    .mt-cta { min-width: 0; width: 100%; max-width: 380px; height: 56px; font-size: 18px; }
}

.mt-gift-btn:focus-visible, .mt-send:focus-visible, .mt-cta:focus-visible, .mt-ghost:focus-visible, .mt-mood-card:focus-visible, .mt-opt:focus-visible,
.mt-icon-btn:focus-visible, .mt-gcard:focus-visible { outline: 2px solid #ffb3d4; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
    .mt-app *, .mt-app *::before, .mt-app *::after, .mt-sheet *, .mt-app::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .mt-bg { display: none; }
}

/* атрибут hidden сильнее display у блоков с display:flex/grid */
.mt-app [hidden], .mt-sheet [hidden] { display: none !important; }
/* чёрный фон картинок подарков растворяется в карточке — предмет «висит» в свечении */
.mt-gcard img, .mt-giftmsg img, .mt-gift-confirm img, .mt-secret-box { mix-blend-mode: lighten; }
.mt-gift-confirm img { box-shadow: none; filter: drop-shadow(0 10px 30px rgba(255, 95, 162, .45)); }
.mt-gcard img { border-radius: 0; }

/* 04.10: сколько людей сейчас в Комнате, расширение поиска */
.mt-online { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; color: #9be7b8; }
.mt-online i { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 10px #3ddc84; animation: mtBreath 2s ease-in-out infinite; }
.mt-search .mt-expand { margin-top: 14px; border-color: rgba(255, 95, 162, .5); color: #ffd6ea; }
.mt-search-empty .mt-ghost { margin-top: 8px; }

/* 04.10: значки под кнопкой — в одну строку, ровно */
.mt-chips { gap: 10px 16px; }
.mt-chips li { white-space: nowrap; }
@media (max-width: 900px) { .mt-hero { padding-top: 20px; } .mt-chips { margin-top: 18px; } .mt-chip-ico { width: 32px; height: 32px; } }
@media (max-width: 400px) { .mt-hero-text { padding-top: 110px; } .mt-title { font-size: 30px; } .mt-chips li { font-size: 12px; gap: 6px; } }

/* 04.10: поиск можно оставить; подарки — бесплатная роза, ответ подарком, бонус получателю */
.mt-search-leave { max-width: 420px; margin: 10px auto 0; font-size: 13px; line-height: 1.5; color: var(--mt-text-2); }
.mt-gcard-free { border-color: rgba(61, 220, 132, .55) !important; box-shadow: 0 0 0 1px rgba(61, 220, 132, .35), 0 0 22px -8px rgba(61, 220, 132, .8); }
.mt-gcard-free span { color: #6ef0a5 !important; }
.mt-reply-gift { margin-top: 8px; height: 30px; padding: 0 14px; border-radius: 999px; border: 0; cursor: pointer; color: #fff; font-size: 12px; font-weight: 700;
    font-family: inherit; background-image: linear-gradient(180deg, #ff6fae, #d6377f); }
.mt-share { color: #6ef0a5 !important; font-weight: 600; }

/* 04.10: доход от подарков */
.mt-earn { width: calc(100% - 96px); margin: 22px 48px 0; padding: 18px 20px; box-sizing: border-box; border-radius: 22px;
    background: linear-gradient(135deg, rgba(30, 70, 50, .45), rgba(28, 16, 30, .92)); border: 1px solid rgba(110, 240, 165, .3); }
.mt-earn[hidden] { display: none; }
.mt-earn-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.mt-earn-head b { font-size: 17px; } .mt-earn-head small { color: var(--mt-text-2); font-size: 12px; }
.mt-earn-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.mt-earn-nums span { display: block; font-size: 22px; font-weight: 800; color: #6ef0a5; }
.mt-earn-nums div + div span { color: var(--mt-text); }
.mt-earn-nums small { color: var(--mt-text-2); font-size: 12px; }
.mt-earn-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.mt-earn-btns .mt-cta { min-width: 0; }
.mt-earn-note { margin: 10px 0 0; font-size: 12px; color: var(--mt-text-2); }
.mt-addr { width: 100%; box-sizing: border-box; height: 46px; border-radius: 14px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .05); color: #fff; font-size: 15px; font-family: ui-monospace, monospace; }
@media (max-width: 900px) { .mt-earn { width: calc(100% - 28px); margin: 20px 14px 0; } }

/* 04.10: биржа подарков */
.mt-market-entry { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: calc(100% - 96px); margin: 18px 48px 0; }
.mt-market-entry[hidden] { display: none; }
.mt-market-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 20px; cursor: pointer; text-align: left; color: var(--mt-text);
    font-family: inherit; background: linear-gradient(135deg, rgba(110, 76, 30, .35), rgba(28, 16, 30, .92)); border: 1px solid rgba(255, 207, 107, .3); }
.mt-market-card:hover { border-color: rgba(255, 207, 107, .6); }
.mt-market-card b { display: block; font-size: 16px; } .mt-market-card small { display: block; color: var(--mt-text-2); font-size: 12px; margin-top: 2px; }
.mt-mc-ico { width: 46px; height: 46px; flex-shrink: 0; background: url("/static/img/meet/crown.6f1edbd1825e.webp") center / cover; border-radius: 12px; mix-blend-mode: lighten; }
.mt-mc-mine { background-image: url("/static/img/meet/key.4fcadaef5c68.webp"); }
@media (max-width: 900px) { .mt-market-entry { width: calc(100% - 28px); margin: 18px 14px 0; grid-template-columns: 1fr; } }

.mt-sheet-card.mt-wide { max-width: 780px; }
.mt-tabs { display: flex; gap: 6px; margin: 0 40px 14px 0; overflow-x: auto; }
.mt-tab { flex-shrink: 0; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .04);
    color: #f6eef6; font-size: 14px; font-weight: 600; font-family: inherit; cursor: pointer; }
.mt-tab.on { background-image: linear-gradient(180deg, #ff6fae, #d6377f); border-color: transparent; }
.mt-mk-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 560px) { .mt-mk-grid { grid-template-columns: repeat(4, 1fr); } }
.mt-mk-card { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 8px 12px; border-radius: 18px; cursor: pointer; color: #f6eef6; font-family: inherit;
    background: linear-gradient(180deg, rgba(60, 30, 54, .8), rgba(28, 18, 32, .95)); border: 1px solid rgba(255, 255, 255, .08); text-align: center; }
.mt-mk-card img { width: 84px; height: 84px; object-fit: cover; mix-blend-mode: lighten; }
.mt-mk-card b { font-size: 13px; line-height: 1.25; }
.mt-mk-floor { font-size: 13px; font-weight: 700; color: #ff5fa2; }
.mt-mk-card small { font-size: 11px; color: #c4b3c8; }
.mt-mk-card[data-rarity="LEGENDARY"] { border-color: rgba(255, 207, 107, .45); } .mt-mk-card[data-rarity="EPIC"] { border-color: rgba(180, 140, 255, .4); }
.mt-mk-listed { box-shadow: inset 0 0 0 1px rgba(110, 240, 165, .5); } .mt-mk-listed .mt-mk-floor { color: #6ef0a5; }
.mt-lots-head { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.mt-lots-head img { width: 84px; height: 84px; object-fit: cover; mix-blend-mode: lighten; }
.mt-lots-head h3 { margin: 0 0 4px !important; } .mt-lots-head small { color: #c4b3c8; }
.mt-lots { display: grid; gap: 8px; }
.mt-lot { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .07); }
.mt-lot-price { font-size: 17px; font-weight: 800; } .mt-lot-deal { font-size: 12px; color: #6ef0a5; }
.mt-lot-btn { margin-left: auto; height: 38px !important; width: auto !important; min-width: 0 !important; padding: 0 16px !important; margin-top: 0 !important; }
.mt-gcard-mine { border-color: rgba(110, 240, 165, .5) !important; } .mt-gcard-mine span { color: #6ef0a5 !important; }
.mt-how p { color: #e9dff0 !important; }

/* 05.10: уникальные подарки (как в Telegram): фон, узор, отделка; тиражи; витрина */
.mt-u { position: relative; display: inline-block; flex-shrink: 0; width: 84px; height: 84px; border-radius: 18px; overflow: hidden;
    background: radial-gradient(circle at 50% 42%, var(--c1, #3a2a40) 0%, var(--c2, #120c16) 78%); }
.mt-u-plain { background: none; overflow: visible; }
.mt-u svg { position: absolute; height: auto; fill: #fff; opacity: .17; pointer-events: none; }
.mt-u img, .mt-mk-card .mt-u img, .mt-giftmsg .mt-u img, .mt-gift-confirm .mt-u img { position: absolute; left: 14%; top: 12%; width: 72% !important; height: 72% !important;
    object-fit: contain; border-radius: 0 !important; box-shadow: none !important; mix-blend-mode: lighten; }
.mt-u:not(.mt-u-plain) img { mix-blend-mode: lighten; }   /* чёрный фон арта растворяется в фоне подарка */
.mt-u-plain img { left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; }
.mt-u-xs { width: 44px; height: 44px; border-radius: 12px; } .mt-u-sm { width: 56px; height: 56px; border-radius: 14px; }
.mt-u-md { width: 92px; height: 92px; } .mt-u-lg { width: 170px; height: 170px; border-radius: 28px; margin: 0 auto 6px; display: block; }
.mt-u[data-tier="legendary"], .mt-u[data-tier="mythic"] { box-shadow: 0 0 0 1px rgba(255, 207, 107, .55), 0 12px 34px -12px rgba(255, 190, 90, .7); }
.mt-u[data-tier="epic"] { box-shadow: 0 0 0 1px rgba(190, 150, 255, .45); }
.mt-u-holo img { animation: mtHolo 6s linear infinite; }
@keyframes mtHolo { from { filter: hue-rotate(0deg) saturate(1.6); } to { filter: hue-rotate(360deg) saturate(1.6); } }
.mt-serial { font-style: normal; font-weight: 600; color: #c4b3c8; font-size: .85em; }
.mt-tier { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .02em; background: rgba(255, 255, 255, .08); color: #e9dcea; vertical-align: middle; }
.mt-tier[data-tier="rare"] { background: rgba(80, 170, 255, .16); color: #8cc8ff; }
.mt-tier[data-tier="epic"] { background: rgba(170, 120, 255, .18); color: #c9a8ff; }
.mt-tier[data-tier="legendary"] { background: rgba(255, 190, 80, .18); color: #ffcf6b; }
.mt-tier[data-tier="mythic"] { background-image: linear-gradient(90deg, #ff5fa2, #ffcf6b, #8cc8ff); color: #1a0f1c; }
.mt-u-attrs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 12px 0 6px; text-align: center; }
.mt-u-attrs div { padding: 8px 4px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .07); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mt-u-attrs small { font-size: 11px; color: #a993ad; } .mt-u-attrs b { font-size: 13px; overflow-wrap: anywhere; } .mt-u-attrs em { font-style: normal; font-size: 12px; color: #ff8fc0; font-weight: 700; }
.mt-cta-gold { background-image: linear-gradient(180deg, #ffd884, #e0a33a) !important; color: #2a1606 !important; }
.mt-item-row { display: flex; gap: 8px; flex-wrap: wrap; } .mt-item-row .mt-ghost { flex: 1 1 140px; }
.mt-ltd { font-style: normal; font-size: 11px; font-weight: 700; color: #ffcf6b; } .mt-ltd-out { color: #ff8f8f; }
.mt-ltd-line { color: #ffcf6b !important; font-size: 13px; display: block; margin-top: 4px; }
.mt-gcard-out { opacity: .7; } .mt-gcard-out span { color: #ff8f8f !important; }
.mt-mk-card { position: relative; }
.mt-mk-u { background-image: linear-gradient(180deg, rgba(255, 207, 107, .08), rgba(255, 255, 255, .02)); }
.mt-pin { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 207, 107, .2); display: grid; place-items: center; }
.mt-pin svg { width: 13px; height: 13px; fill: #ffcf6b; }
.mt-coll { position: relative; margin: 0 0 12px; padding: 9px 12px; border-radius: 12px; background: rgba(255, 255, 255, .04); overflow: hidden; font-size: 13px; color: #e9dcea; }
.mt-coll span { position: relative; z-index: 1; } .mt-coll i { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(255, 95, 162, .18); }
.mt-lot-info { display: flex; flex-direction: column; min-width: 0; } .mt-lot-info small { font-size: 12px; color: #c4b3c8; overflow-wrap: anywhere; }
.mt-giftmsg .mt-tier { margin-left: 4px; }
.mt-show-btn { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 10px; border-radius: 999px; border: 1px solid rgba(255, 207, 107, .35);
    background: rgba(255, 207, 107, .08); color: #ffcf6b; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; flex-shrink: 0; }
.mt-show-btn svg { width: 14px; height: 14px; fill: currentColor; }
@media (max-width: 480px) { .mt-show-btn span { display: none; } }
.mt-reveal .mt-u-lg { animation: mtReveal 1.3s cubic-bezier(.2, .9, .2, 1) both; }
.mt-reveal .mt-u-attrs div { animation: mtUp .5s ease both; } .mt-reveal .mt-u-attrs div:nth-child(1) { animation-delay: .9s; }
.mt-reveal .mt-u-attrs div:nth-child(2) { animation-delay: 1.1s; } .mt-reveal .mt-u-attrs div:nth-child(3) { animation-delay: 1.3s; }
@keyframes mtReveal { 0% { transform: scale(.4) rotate(-12deg); opacity: 0; filter: brightness(3) blur(6px); } 60% { transform: scale(1.08) rotate(2deg); opacity: 1; filter: brightness(1.6); } 100% { transform: none; filter: none; } }
@keyframes mtUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .mt-reveal .mt-u-lg, .mt-reveal .mt-u-attrs div, .mt-u-holo img { animation: none; } }
/* страница подарка по ссылке */
.mt-gp { max-width: 560px; margin: 24px auto 40px; box-sizing: border-box; padding: 26px 22px; border-radius: 28px; background: var(--mt-surface); border: 1px solid var(--mt-line); text-align: center; color: var(--mt-text); }
.mt-gp .mt-u-lg { width: 240px; height: 240px; max-width: 100%; }
.mt-gp h1 { font-size: 26px; margin: 14px 0 8px; } .mt-gp p { color: var(--mt-text-2); line-height: 1.55; }
.mt-gp-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 14px 0; text-align: left; }
.mt-gp-facts div { padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .04); } .mt-gp-facts small { display: block; color: #a993ad; font-size: 12px; }
.mt-gp .mt-cta { display: flex; text-decoration: none; }
@media (max-width: 768px) { .mt-gp { margin: 12px 0 96px; padding: 22px 16px; } }

/* 05.10: присутствие — есть ли кто-то в Комнате, в чате ли собеседник */
.mt-online[data-st="wait"] { color: #9be7b8; font-weight: 600; }
.mt-online[data-st="empty"] { color: #c4b3c8; } .mt-online[data-st="empty"] i { background: #8a7a8e; box-shadow: none; animation: none; }
.mt-them-txt small.mt-gone { color: #ff8f8f; }
.mt-them-txt small.mt-live::before, .mt-them-txt small.mt-lost::before, .mt-them-txt small.mt-gone::before { content: ''; display: inline-block; width: 7px; height: 7px;
    border-radius: 50%; margin-right: 6px; vertical-align: 1px; background: currentColor; }
.mt-presence[data-k="off"] { color: #ffcf8a; } .mt-presence[data-k="on"] { color: #7be3a8; }

/* 05.10: биржа — продажа за USDT или GEM, разделы, раскладка лотов */
.mt-u:not(.mt-u-plain) img { -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 52%, transparent 71%); mask-image: radial-gradient(circle at 50% 50%, #000 52%, transparent 71%); }
.mt-mk-intro { padding: 12px 14px; border-radius: 14px; background: rgba(110, 240, 165, .07); border: 1px solid rgba(110, 240, 165, .2); margin-bottom: 10px; font-size: 14px; line-height: 1.45; }
.mt-mk-intro b { display: block; margin-bottom: 2px; } .mt-mk-intro span { color: #c4b3c8; }
.mt-mk-h { margin: 16px 0 8px; font-size: 15px; color: #fff; }
.mt-mk-none .mt-mk-floor { color: #a993ad; font-weight: 500; }
.mt-mk-sell { color: #9be7b8 !important; }
.mt-lot-price { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.mt-lot-info { flex: 1 1 auto; } .mt-lot .mt-lot-deal { color: #6ef0a5; }
.mt-lot-btn { flex-shrink: 0; }
.mt-sell { text-align: left; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .08); }
.mt-sell h5 { margin: 10px 0 8px; font-size: 14px; color: #fff; }
.mt-sell-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mt-sell-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 12px; border-radius: 14px; cursor: pointer; text-align: left;
    background: rgba(110, 240, 165, .06); border: 1px solid rgba(110, 240, 165, .3); color: #f6eef6; font-family: inherit; }
.mt-sell-opt b { font-size: 18px; color: #6ef0a5; }
.mt-sell-opt + .mt-sell-opt { background: rgba(255, 95, 162, .06); border-color: rgba(255, 95, 162, .3); } .mt-sell-opt + .mt-sell-opt b { color: #ff8fc0; }
.mt-sell-opt small { font-size: 12px; color: #c4b3c8; line-height: 1.35; }
.mt-payto { margin-top: 8px; } .mt-payto .mt-opt { flex: 1; }
@media (max-width: 480px) { .mt-tab { padding: 0 11px; font-size: 13px; } .mt-tabs { margin-right: 36px; } }

/* 05.10: ответ на сообщение (как в WhatsApp) */
.mt-msg { cursor: pointer; transition: transform .15s ease; }
.mt-quote { display: flex; flex-direction: column; gap: 1px; margin: -2px 0 6px; padding: 6px 10px; border-left: 3px solid #ff5fa2; border-radius: 8px;
    background: rgba(0, 0, 0, .22); font-size: 13px; cursor: pointer; max-width: 100%; }
.mt-quote b { color: #ff8fc0; font-size: 12px; } .mt-quote span { color: #e9dcea; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal; }
.mt-reply { display: flex; align-items: center; gap: 10px; margin: 0 12px 6px; padding: 8px 8px 8px 12px; border-left: 3px solid #ff5fa2; border-radius: 12px; background: rgba(255, 255, 255, .06); }
.mt-reply-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 13px; }
.mt-reply-txt b { color: #ff8fc0; font-size: 12px; } .mt-reply-txt span { color: #e9dcea; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt-reply .mt-icon-btn { width: 32px; height: 32px; flex-shrink: 0; }
.mt-flash { animation: mtFlashMsg 1.2s ease; }
@keyframes mtFlashMsg { 0%, 60% { box-shadow: 0 0 0 3px rgba(255, 95, 162, .6); } 100% { box-shadow: none; } }

/* 05.10: биржа на видном месте — «подарки можно продать» */
.mt-sellnote { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 14px; font-weight: 600; color: #6ef0a5 !important; text-decoration: none; }
.mt-sellnote svg { width: 16px; height: 16px; fill: #6ef0a5; flex-shrink: 0; } .mt-sellnote:hover { text-decoration: underline; }
.mt-market-top { position: relative; z-index: 2; width: calc(100% - 96px); margin: 22px 48px 0; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 10px; align-items: stretch; }
.mt-market-top .mt-market-card { text-decoration: none; color: inherit; margin: 0; }
.mt-market-say { display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 14px 16px; border-radius: 20px;
    background: rgba(110, 240, 165, .08); border: 1px solid rgba(110, 240, 165, .25); }
.mt-market-say b { color: #6ef0a5; font-size: 17px; } .mt-market-say span { color: #c4b3c8; font-size: 13px; line-height: 1.45; }
@media (max-width: 900px) { .mt-market-top { width: calc(100% - 28px); margin: 20px 14px 0; grid-template-columns: 1fr; } }
.mt-sell-link { color: #6ef0a5 !important; font-weight: 700; }

/* 05.10: «Следующий» и приглашение по ссылке */
.mt-next-btn { display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .06); color: #f6eef6; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; flex-shrink: 0; }
.mt-next-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 420px) { .mt-next-btn span { display: none; } .mt-next-btn { padding: 0 9px; } }
.mt-invite-link { display: block; margin: 10px 0 0; padding: 0; text-align: left; }

/* 05.10: мои переписки */
.mt-saved-item { position: relative; }
.mt-saved-st { margin-left: auto; flex-shrink: 0; font-style: normal; font-size: 12px; font-weight: 600; color: #ff8fc0; padding: 3px 9px; border-radius: 999px; background: rgba(255, 95, 162, .12); }
.mt-saved-st.on { color: #6ef0a5; background: rgba(110, 240, 165, .12); }
#mtResume { width: 100%; margin-top: 8px; }
