/* «Тайная комната» (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.b2aaf1651e84.webp") center / cover; border-radius: 12px; mix-blend-mode: lighten; }
.mt-mc-mine { background-image: url("/static/img/meet/key.d1a33f97d924.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; }

/* 05.10: перевод GEM */
.mt-warn { padding: 10px 12px; border-radius: 12px; background: rgba(255, 190, 80, .1); border: 1px solid rgba(255, 190, 80, .3); color: #ffdca0; font-size: 13px; line-height: 1.45; margin-bottom: 12px; }
.mt-warn b { color: #ffcf6b; }
.mt-tr-cancel { display: block; margin: 6px auto 0; border: 0; background: none; color: #ff8fc0; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: underline; }

/* 05.10: полоска подарков над полем ввода */
.mt-qgifts { display: flex; align-items: center; gap: 8px; padding: 6px 12px 2px; border-top: 1px solid var(--mt-line); background: rgba(18, 12, 21, .8); }
.mt-qg-lbl { flex-shrink: 0; font-size: 12px; font-weight: 700; color: #ff8fc0; writing-mode: horizontal-tb; }
.mt-qg-row { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 4px; }
.mt-qg-row::-webkit-scrollbar { display: none; }
.mt-qg { flex-shrink: 0; display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 10px 0 4px; border-radius: 999px; cursor: pointer;
    border: 1px solid rgba(255, 140, 195, .25); background: rgba(255, 95, 162, .08); color: #f6eef6; font: inherit; font-size: 13px; font-weight: 600; }
.mt-qg img, .mt-qg svg { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; mix-blend-mode: lighten; }
.mt-qg-free { border-color: rgba(110, 240, 165, .5); background: rgba(110, 240, 165, .1); } .mt-qg-free span { color: #6ef0a5; }
.mt-qg-all { padding: 0 12px; } .mt-qg-all b { font-size: 13px; } .mt-qg-all span { font-weight: 500; color: #c4b3c8; }
.mt-qgifts + .mt-reply { margin-top: 6px; }
.mt-qgifts ~ .mt-input { border-top: 0; }
.mt-presence[data-k="gift"] { color: #ffcf6b; }
.mt-chat[data-ended="1"] .mt-qgifts { display: none; }
/* 05.10: шапка чата на телефоне — статус в одну строку (баланс GEM и так в шапке сайта) */
@media (max-width: 480px) {
    .mt-chat-head .mt-gem-chip { display: none; }
    .mt-them-txt small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; max-width: 100%; }
    .mt-them, .mt-them-txt { min-width: 0; }
}

/* 05.10: предложение уведомлений */
.mt-pushask { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(150px + env(safe-area-inset-bottom, 0px)); z-index: 9400; width: min(520px, calc(100vw - 24px));
    box-sizing: border-box; display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 16px; border-radius: 18px; background: #2a1b2e; border: 1px solid rgba(255, 140, 195, .35);
    box-shadow: 0 16px 40px -10px rgba(0, 0, 0, .7); color: #f6eef6; font-size: 14px; line-height: 1.4; animation: mtIn .35s both; }
.mt-pushask span { flex: 1; }
.mt-pa-yes { flex-shrink: 0; height: 38px; padding: 0 16px; border: 0; border-radius: 999px; background-image: linear-gradient(180deg, #ff6fae, #d6377f); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.mt-pa-no { flex-shrink: 0; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; font-size: 18px; cursor: pointer; }

.mt-saved-new { margin-left: auto; flex-shrink: 0; min-width: 22px; height: 22px; padding: 0 6px; box-sizing: border-box; border-radius: 999px; display: grid; place-items: center;
    font-style: normal; font-size: 12px; font-weight: 800; background: #ff3d8b; color: #fff; }
.mt-invite2 { margin-top: 14px; }

/* 05.10: привязка Telegram для уведомлений */
.mt-tglink { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 14px; font-weight: 600; color: #7cc4ff !important; text-decoration: none; text-align: left; }
.mt-tglink svg { width: 18px; height: 18px; fill: #7cc4ff; flex-shrink: 0; } .mt-tglink:hover { text-decoration: underline; }

/* 05.10: готовые фразы и объяснение при первом входе */
.mt-ice { display: flex; align-items: center; gap: 8px; padding: 6px 12px 2px; border-top: 1px solid var(--mt-line); background: rgba(18, 12, 21, .8); }
.mt-ice-b { flex-shrink: 0; max-width: 260px; padding: 8px 12px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .05);
    color: #f6eef6; font: inherit; font-size: 13px; line-height: 1.3; text-align: left; cursor: pointer; white-space: normal; }
.mt-ice-b:hover { border-color: rgba(255, 140, 195, .45); }
.mt-ice + .mt-qgifts { border-top: 0; }
.mt-chat[data-ended="1"] .mt-ice { display: none; }
.mt-steps { display: grid; gap: 10px; margin: 6px 0 16px; }
.mt-steps > div { display: flex; gap: 12px; align-items: flex-start; }
.mt-steps i { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 800; background: #ff5fa2; color: #fff; }
.mt-steps span { color: #c4b3c8; font-size: 14px; line-height: 1.45; } .mt-steps b { display: block; color: #fff; font-size: 15px; }

/* 05.10: постоянное имя */
.mt-nick { margin-top: 8px; font-size: 14px; color: #c4b3c8; } .mt-nick b { color: #fff; } .mt-nick .mt-link { margin: 0; padding: 0; font-size: 14px; }
/* 05.10: шапка чата на узких экранах — имя и статус не схлопываются */
.mt-them-txt { flex: 1 1 auto; min-width: 0; overflow: hidden; }
@media (max-width: 380px) {
    .mt-chat-head { gap: 6px; padding: 10px 8px 10px 4px; }
    .mt-medal-head { width: 40px; height: 40px; }
    .mt-them { gap: 8px; }
    .mt-them-txt b { font-size: 15px; }
    .mt-show-btn { padding: 0 7px; height: 30px; }
    .mt-next-btn { padding: 0 7px; height: 30px; }
    .mt-chat-head .mt-icon-btn { width: 32px; height: 32px; }
}

/* 05.10: «только реальные люди» — видно до входа */
.mt-live-badge { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700;
    color: #9be7b8; background: rgba(61, 220, 132, .1); border: 1px solid rgba(61, 220, 132, .35); }
.mt-live-badge i { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 10px #3ddc84; animation: mtBreath 2s ease-in-out infinite; }

/* 06.10: карточки вместо строк, красивый подарок, кнопки вместо ссылок */
.mt-note { align-self: center; display: flex; align-items: flex-start; gap: 10px; max-width: min(92%, 460px); margin: 4px auto; padding: 10px 14px;
    border-radius: 16px; background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .08); color: #d9cbdc; font-size: 13.5px; line-height: 1.45; }
.mt-note-ic { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 95, 162, .14); color: #ff8fc0; }
.mt-note-ic svg { width: 15px; height: 15px; fill: currentColor; }
.mt-note[data-k="away"] .mt-note-ic { background: rgba(255, 190, 80, .14); color: #ffcf8a; }
.mt-note[data-k="back"] .mt-note-ic, .mt-note[data-k="start"] .mt-note-ic { background: rgba(61, 220, 132, .14); color: #6ef0a5; }
.mt-note[data-k="gem"] .mt-note-ic { background: rgba(110, 160, 255, .16); color: #9cc0ff; }
.mt-note[data-k="heart"] .mt-note-ic { background: rgba(255, 95, 162, .2); color: #ff5fa2; }
.mt-note-txt { padding-top: 3px; }
.mt-giftmsg { align-self: center; display: flex; align-items: center; gap: 14px; max-width: min(92%, 420px); margin: 6px auto; padding: 12px 16px 12px 12px; border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 95, 162, .16), rgba(138, 43, 226, .12)); border: 1px solid rgba(255, 140, 195, .3); box-shadow: 0 10px 30px -18px rgba(255, 95, 162, .8); }
.mt-u-gc { width: 64px; height: 64px; border-radius: 16px; }
.mt-gc-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mt-gc-who { font-size: 12px; color: #ffb3d4; font-weight: 600; letter-spacing: .02em; }
.mt-gc-name { font-size: 17px; color: #fff; line-height: 1.2; }
.mt-gc-num { align-self: flex-start; font-style: normal; font-size: 11px; font-weight: 700; color: #ffcf6b; background: rgba(255, 207, 107, .12); padding: 1px 8px; border-radius: 999px; }
.mt-giftmsg .mt-share { color: #c9b9cd; font-size: 12.5px; }
.mt-reply-gift { align-self: flex-start; margin-top: 6px; height: 32px; padding: 0 14px; border-radius: 999px; border: 0; cursor: pointer; font: inherit; font-size: 13px; font-weight: 700;
    color: #fff; background-image: linear-gradient(135deg, #ff6aa6, #d6377f); }
.mt-qgifts, .mt-ice { flex-direction: column; align-items: stretch; gap: 4px; }
.mt-qg-lbl { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #a993ad; font-weight: 700; padding-left: 2px; }
.mt-qg { height: 46px; padding: 0 12px 0 5px; gap: 8px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .05); }
.mt-qg img, .mt-qg svg { width: 36px; height: 36px; border-radius: 10px; }
.mt-qg-all svg { width: 20px; height: 20px; fill: #ff8fc0; margin-left: 6px; }
.mt-qg-t { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.mt-qg-t b { font-size: 12.5px; font-weight: 700; color: #fff; white-space: nowrap; max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
.mt-qg-t small { font-size: 11.5px; color: #ffb3d4; font-weight: 600; }
.mt-qg-free { border-color: rgba(110, 240, 165, .45); background: rgba(110, 240, 165, .08); } .mt-qg-free .mt-qg-t small { color: #6ef0a5; }
.mt-ice-b { border-radius: 14px; background: rgba(255, 95, 162, .08); border-color: rgba(255, 140, 195, .25); max-width: 270px; }
.mt-nick { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 8px 8px 8px 10px; border-radius: 16px; background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .09); max-width: 360px; }
.mt-nick-av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 95, 162, .15); flex-shrink: 0; }
.mt-nick-av svg { width: 18px; height: 18px; fill: none; stroke: #ff8fc0; stroke-width: 2; }
.mt-nick-txt { display: flex; flex-direction: column; flex: 1; min-width: 0; } .mt-nick-txt small { font-size: 11.5px; color: #a993ad; } .mt-nick-txt b { color: #fff; font-size: 15px; }
.mt-pill-btn { flex-shrink: 0; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255, 140, 195, .4); background: rgba(255, 95, 162, .1); color: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.mt-side-btn { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 360px; margin-top: 10px; padding: 10px 14px; border-radius: 16px; cursor: pointer; text-align: left; text-decoration: none;
    background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); color: #f6eef6 !important; font: inherit; box-sizing: border-box; }
.mt-side-btn:hover { border-color: rgba(255, 140, 195, .4); }
.mt-side-btn svg { width: 22px; height: 22px; flex-shrink: 0; color: #ff8fc0; fill: none; }
.mt-side-tg svg { fill: #7cc4ff; color: #7cc4ff; }
.mt-side-btn span { display: flex; flex-direction: column; } .mt-side-btn b { font-size: 14px; } .mt-side-btn small { font-size: 12px; color: #a993ad; }
.mt-chips-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 14px; }
.mt-chip { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .05); color: #fff; font: inherit; font-size: 14px; cursor: pointer; }
.mt-chip:hover { border-color: rgba(255, 140, 195, .5); }

.mt-initial { font-weight: 800; font-size: 20px; line-height: 1; color: #fff; text-shadow: 0 1px 6px rgba(255, 95, 162, .6); }
.mt-medal-head .mt-initial { font-size: 22px; } .mt-medal-xl .mt-initial { font-size: 42px; }
.mt-medal:has(.mt-initial) { background-image: linear-gradient(135deg, #ff6aa6, #8a2be2); }

/* 06.10: удаление переписки из «Мои переписки» */
.mt-saved-row { position: relative; display: flex; align-items: stretch; gap: 6px; margin-bottom: 8px; transition: opacity .25s, transform .25s; }
.mt-saved-row .mt-saved-item { flex: 1; min-width: 0; margin-bottom: 0; }
.mt-saved-x { flex-shrink: 0; width: 44px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .03); color: var(--mt-text-2, #a993ad);
    cursor: pointer; display: grid; place-items: center; }
.mt-saved-x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.mt-saved-x:hover, .mt-saved-x:focus-visible { color: #ff7d97; border-color: rgba(255, 107, 138, .45); background: rgba(255, 107, 138, .08); }
.mt-saved-ask { position: absolute; inset: 0; display: flex; align-items: center; gap: 8px; padding: 0 10px 0 14px; border-radius: 18px;
    background: #1c1420; border: 1px solid rgba(255, 107, 138, .5); z-index: 2; }
.mt-saved-ask[hidden] { display: none; }
.mt-saved-ask span { flex: 1; min-width: 0; font-size: 13px; line-height: 1.25; color: #f6eef6; }
.mt-saved-ask button { flex-shrink: 0; height: 34px; padding: 0 12px; border-radius: 999px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.mt-saved-yes { border: 0; color: #fff; background-image: linear-gradient(135deg, #ff5f7e, #d6375a); }
.mt-saved-no { border: 1px solid rgba(255, 255, 255, .16); color: #f6eef6; background: transparent; }
.mt-saved-row.gone { opacity: 0; transform: translateX(16px); }

/* 06.10: длинное последнее сообщение не выталкивает «продолжить» за карточку */
.mt-saved-item > span:not(.mt-medal) { flex: 1; min-width: 0; text-align: left; }
.mt-saved-item small { max-width: none; }
.mt-saved-item .mt-medal { flex-shrink: 0; }

.mt-saved-ask span b { display: block; font-size: 14px; } .mt-saved-ask span small { display: block; font-size: 12px; color: #b9a7bd; white-space: normal; max-width: none; }

/* 06.10: биржа только за GEM, пока выплаты выключены */
.mk-gem-only .mt-payto, .mk-gem-only [data-room="usdt"], .mt-gem-only .mt-payto, .mt-gem-only #mtSellUsdt { display: none !important; }
.mk-gem-only .mt-sell-row, .mt-gem-only .mt-sell-row { grid-template-columns: 1fr; }

/* ===== 06.10: главный экран Комнаты — плитки одного вида вместо столбика разного ===== */
.mt-online { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 7px 14px 7px 12px; border-radius: 999px; font-size: 13.5px; line-height: 1.35;
    color: #e8dcea; background: rgba(20, 13, 25, .6); border: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); max-width: 100%; }
.mt-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; max-width: 560px; }
.mt-tiles > [hidden] { display: none !important; }
.mt-tiles .mt-nick, .mt-tiles .mt-side-btn { margin: 0; width: 100%; max-width: none; min-height: 64px; box-sizing: border-box; border-radius: 18px;
    background: rgba(20, 13, 25, .62); border: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    transition: transform .18s, border-color .2s, background .2s; animation: mtTileIn .5s both; }
.mt-tiles > *:nth-child(2) { animation-delay: .06s; } .mt-tiles > *:nth-child(3) { animation-delay: .12s; } .mt-tiles > *:nth-child(4) { animation-delay: .18s; }
@keyframes mtTileIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.mt-tiles .mt-side-btn:hover, .mt-tiles .mt-nick:hover { transform: translateY(-2px); border-color: rgba(255, 140, 195, .45); background: rgba(40, 18, 38, .75); }
.mt-tiles .mt-side-btn:active { transform: scale(.98); }
.mt-tiles .mt-side-btn svg { width: 24px; height: 24px; padding: 8px; box-sizing: content-box; border-radius: 12px; background: rgba(255, 95, 162, .14); }
.mt-tiles .mt-side-tg svg { background: rgba(124, 196, 255, .14); }
.mt-side-sell svg { color: #6ef0a5; background: rgba(110, 240, 165, .12) !important; }
.mt-tiles .mt-nick { padding: 10px 10px 10px 12px; }
.mt-tiles .mt-nick-av { width: 40px; height: 40px; border-radius: 12px; }
.mt-sellnote { display: none !important; }
.mt-chips { display: flex !important; flex-wrap: wrap; gap: 8px; margin-top: 16px !important; }
.mt-chips li { padding: 5px 12px 5px 5px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); }
.mt-howbtn2 { display: inline-flex; align-items: center; gap: 6px; height: 38px; margin-top: 6px; padding: 0 16px; border-radius: 999px; cursor: pointer; font: inherit; font-size: 13.5px;
    font-weight: 600; color: #fff; background: rgba(255, 95, 162, .14); border: 1px solid rgba(255, 140, 195, .4); transition: background .2s, transform .15s; }
.mt-howbtn2:hover { background: rgba(255, 95, 162, .24); } .mt-howbtn2:active { transform: scale(.97); }
@media (max-width: 720px) { .mt-tiles { grid-template-columns: 1fr; max-width: none; } .mt-online { margin-left: auto; margin-right: auto; } .mt-chips { justify-content: center; } }

.mt-hero-text { max-width: 600px; }
.mt-pen { width: 38px; height: 38px; padding: 0 !important; display: grid; place-items: center; border-radius: 12px !important; }
.mt-pen svg { width: 17px; height: 17px; fill: none; stroke: #ffb3d4; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.mt-tiles .mt-nick-txt small { white-space: nowrap; }
.mt-chips { flex-wrap: nowrap !important; } .mt-chips li { white-space: nowrap; font-size: 13px; }
@media (max-width: 520px) { .mt-chips { flex-wrap: wrap !important; } }
.mt-tiles, .mt-tiles * { text-align: left; }
.mt-online { text-align: left; }

/* ===== 06.10: улучшенные подарки — оправа по отделке, благородный фон, узор кольцом; рисунок не перекрашивается ===== */
.mt-u:not(.mt-u-plain) { --rim: rgba(255, 255, 255, .12); --rim2: rgba(255, 255, 255, .04);
    background: radial-gradient(circle at 50% 46%, color-mix(in srgb, var(--c1) 85%, #fff 15%) 0%, var(--c1) 28%, var(--c2) 82%);
    box-shadow: inset 0 0 0 2px var(--rim), inset 0 0 0 4px var(--rim2), inset 0 -18px 30px -18px rgba(0, 0, 0, .55); isolation: isolate; }
.mt-u:not(.mt-u-plain) img { mix-blend-mode: normal !important; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .45)) !important; -webkit-mask-image: none !important; mask-image: none !important; z-index: 2; }
.mt-u-glow { position: absolute; inset: 18%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .28), transparent 70%); filter: blur(6px); z-index: 1; pointer-events: none; }
.mt-u:not(.mt-u-plain) svg { fill: color-mix(in srgb, var(--c1) 55%, #fff 45%); opacity: .38; z-index: 1; }
.mt-u-shine { position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit;
    background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .22) 48%, transparent 60%); background-size: 260% 100%; background-position: 130% 0; }
.mt-u:hover .mt-u-shine, .mt-u-lg .mt-u-shine { animation: mtShine 3.2s ease-in-out infinite; }
@keyframes mtShine { 0% { background-position: 130% 0; } 55%, 100% { background-position: -40% 0; } }
/* оправа по отделке */
.mt-u[data-model="rosegold"] { --rim: #f2b8a6; --rim2: rgba(242, 184, 166, .35); }
.mt-u[data-model="gold"] { --rim: #f3d27a; --rim2: rgba(243, 210, 122, .4); }
.mt-u[data-model="silver"] { --rim: #e4e8ef; --rim2: rgba(228, 232, 239, .35); }
.mt-u[data-model="onyx"] { --rim: #4b4b55; --rim2: rgba(0, 0, 0, .6); }
.mt-u[data-model="emerald"] { --rim: #3fe0a0; --rim2: rgba(63, 224, 160, .35); }
.mt-u[data-model="sapphire"] { --rim: #6aa0ff; --rim2: rgba(106, 160, 255, .35); }
.mt-u[data-model="amethyst"] { --rim: #c49bff; --rim2: rgba(196, 155, 255, .35); }
.mt-u[data-model="ruby"] { --rim: #ff4d6d; --rim2: rgba(255, 77, 109, .4); }
.mt-u[data-model="ice"] { --rim: #c9f3ff; --rim2: rgba(201, 243, 255, .45); }
.mt-u[data-model="emerald"], .mt-u[data-model="sapphire"], .mt-u[data-model="amethyst"], .mt-u[data-model="ruby"] {
    box-shadow: inset 0 0 0 2px var(--rim), inset 0 0 0 4px var(--rim2), inset 0 0 22px -6px var(--rim), inset 0 -18px 30px -18px rgba(0, 0, 0, .55); }
.mt-u[data-model="ice"]::after { content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit;
    background: radial-gradient(circle at 18% 12%, rgba(255, 255, 255, .45), transparent 30%), radial-gradient(circle at 85% 90%, rgba(201, 243, 255, .3), transparent 35%); }
.mt-u[data-model="holo"] { box-shadow: inset 0 0 0 3px transparent; }
.mt-u[data-model="holo"]::before { content: ''; position: absolute; inset: 0; z-index: 4; pointer-events: none; border-radius: inherit; padding: 3px;
    background: conic-gradient(from var(--hx, 0deg), #ff6aa6, #ffd36b, #6ef0a5, #6aa0ff, #c49bff, #ff6aa6);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: mtHoloRim 4s linear infinite; }
@property --hx { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes mtHoloRim { to { --hx: 360deg; } }
.mt-u-holo img { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .mt-u-shine, .mt-u[data-model="holo"]::before { animation: none !important; } }

/* 06.10: рисунки подарков теперь на прозрачном фоне — «осветление» и круглая обрезка больше не нужны */
.mt-story-key, .mt-story-letter, .mt-medal .mt-crown img, .mt-fx-big img, .mt-fx-eternal img, .mt-gcard img, .mt-giftmsg img, .mt-gift-confirm img,
.mt-mk-card img, .mt-lots-head img, .mt-u img, .mt-qg img { mix-blend-mode: normal !important; }
.mt-fx-big img, .mt-fx-eternal img, .mt-mk-card img, .mt-lots-head img, .mt-qg img { object-fit: contain !important; border-radius: 0 !important; }
.mt-mc-ico { background-size: contain !important; background-repeat: no-repeat !important; mix-blend-mode: normal !important; }
.mt-u-plain img { filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .45)); }

/* ===== 06.10: анимация улучшения ===== */
.mt-roll-stage, .mt-rv-stage { position: relative; width: 210px; height: 210px; margin: 6px auto 10px; display: grid; place-items: center; }
.mt-roll-u { --c1: #7a1838; --c2: #1c0d24; animation: mtRollBg 2.1s linear both, mtRollShake 2.1s ease-in both; }
.mt-roll-u img { animation: mtRollSpin 2.1s cubic-bezier(.4, 0, .2, 1) both; }
@keyframes mtRollBg { 0% { --c1: #7a1838; } 15% { --c1: #6b3280; } 30% { --c1: #17587e; } 45% { --c1: #1f7a60; } 60% { --c1: #c9a066; } 75% { --c1: #a0225a; } 90% { --c1: #2b3a90; } 100% { --c1: #e0705e; } }
@property --c1 { syntax: '<color>'; inherits: true; initial-value: #3a2a40; }
@keyframes mtRollSpin { 0% { transform: scale(.9) rotateY(0); } 80% { transform: scale(1.05) rotateY(1080deg); } 100% { transform: scale(1) rotateY(1440deg); } }
@keyframes mtRollShake { 0%, 70% { transform: none; } 75% { transform: translateX(-3px) rotate(-1deg); } 80% { transform: translateX(3px) rotate(1deg); } 85% { transform: translateX(-2px); } 90%, 100% { transform: none; } }
.mt-roll-ring { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, transparent, rgba(255, 106, 166, .9), transparent 35%, rgba(255, 211, 107, .9), transparent 70%, rgba(196, 155, 255, .9), transparent);
    -webkit-mask: radial-gradient(circle, transparent 60%, #000 62%, #000 66%, transparent 68%); mask: radial-gradient(circle, transparent 60%, #000 62%, #000 66%, transparent 68%); animation: mtSpin 1s linear infinite; }
.mt-roll-sparks i { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px 3px rgba(255, 180, 220, .9);
    animation: mtOrbit 1.6s linear infinite; }
.mt-roll-sparks i:nth-child(2n) { animation-duration: 2.2s; background: #ffd36b; } .mt-roll-sparks i:nth-child(3n) { animation-direction: reverse; }
.mt-roll-sparks i:nth-child(1) { animation-delay: -0.00s; }
.mt-roll-sparks i:nth-child(2) { animation-delay: -0.17s; }
.mt-roll-sparks i:nth-child(3) { animation-delay: -0.34s; }
.mt-roll-sparks i:nth-child(4) { animation-delay: -0.51s; }
.mt-roll-sparks i:nth-child(5) { animation-delay: -0.68s; }
.mt-roll-sparks i:nth-child(6) { animation-delay: -0.85s; }
.mt-roll-sparks i:nth-child(7) { animation-delay: -1.02s; }
.mt-roll-sparks i:nth-child(8) { animation-delay: -1.19s; }
.mt-roll-sparks i:nth-child(9) { animation-delay: -1.36s; }
.mt-roll-sparks i:nth-child(10) { animation-delay: -1.53s; }

@keyframes mtOrbit { from { transform: rotate(0deg) translateX(98px) scale(.6); } 50% { transform: rotate(180deg) translateX(98px) scale(1.1); } to { transform: rotate(360deg) translateX(98px) scale(.6); } }
.mt-rolling h4 { animation: mtPulseTxt 1s ease-in-out infinite; }
@keyframes mtPulseTxt { 50% { opacity: .55; } }
.mt-rv-rays { position: absolute; inset: -30px; border-radius: 50%; pointer-events: none;
    background: repeating-conic-gradient(from 0deg, rgba(255, 220, 240, .28) 0deg 6deg, transparent 6deg 20deg);
    -webkit-mask: radial-gradient(circle, #000 20%, transparent 70%); mask: radial-gradient(circle, #000 20%, transparent 70%); animation: mtRays 1.2s ease-out both, mtSpin 14s linear infinite; }
@keyframes mtRays { from { opacity: 0; transform: scale(.3); } 40% { opacity: 1; } to { opacity: .7; transform: scale(1); } }
.mt-reveal[data-tier="legendary"] .mt-rv-rays, .mt-reveal[data-tier="mythic"] .mt-rv-rays { background: repeating-conic-gradient(from 0deg, rgba(255, 214, 107, .45) 0deg 6deg, transparent 6deg 20deg); }
.mt-reveal[data-tier="epic"] .mt-rv-rays { background: repeating-conic-gradient(from 0deg, rgba(196, 155, 255, .4) 0deg 6deg, transparent 6deg 20deg); }
.mt-reveal .mt-rv-stage .mt-u-lg { animation: mtRvPop .9s cubic-bezier(.2, 1.4, .3, 1) both; margin: 0; }
@keyframes mtRvPop { 0% { transform: scale(.4); filter: brightness(3); } 60% { transform: scale(1.08); filter: brightness(1.3); } 100% { transform: scale(1); filter: none; } }
@media (prefers-reduced-motion: reduce) { .mt-roll-u, .mt-roll-u img, .mt-roll-ring, .mt-roll-sparks i, .mt-rv-rays, .mt-reveal .mt-rv-stage .mt-u-lg { animation: none !important; } }
@keyframes mtSpin { to { transform: rotate(360deg); } }

/* 06.10: подсказка «подари розу» в переписке */
.mt-rose { position: relative; align-self: center; display: flex; align-items: center; gap: 14px; width: min(92%, 420px); margin: 8px auto; padding: 14px 40px 14px 14px; border-radius: 20px;
    background: radial-gradient(120% 140% at 0% 0%, rgba(255, 95, 162, .26), transparent 60%), linear-gradient(135deg, rgba(60, 22, 46, .95), rgba(32, 18, 38, .95));
    border: 1px solid rgba(255, 140, 195, .38); box-shadow: 0 14px 34px -20px rgba(255, 95, 162, .95); animation: mtUnfold .5s both; }
.mt-rose > img, .mt-rose > .mt-u { width: 64px; height: 64px; flex-shrink: 0; border-radius: 16px; object-fit: contain; animation: mtRoseBeat 2.4s ease-in-out infinite; }
.mt-rose-t { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mt-rose-t b { color: #fff; font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.mt-rose-t span { color: #d9cbdc; font-size: 13px; line-height: 1.4; }
.mt-rose-go { align-self: flex-start; margin-top: 6px; white-space: nowrap; height: 38px; padding: 0 18px; border: 0; border-radius: 999px; cursor: pointer; font: 600 14px/1 Inter, system-ui, sans-serif; color: #fff;
    background-image: linear-gradient(135deg, #ff6aa6, #D63384 55%, #8a2be2); box-shadow: 0 8px 20px -10px rgba(214, 51, 132, 1); transition: transform .15s, filter .2s; }
.mt-rose-go:hover { filter: brightness(1.08); } .mt-rose-go:active { transform: scale(.96); }
.mt-rose-x { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .06); color: #c9b9cd; font-size: 18px; line-height: 1; cursor: pointer; }
.mt-rose-x:hover { background: rgba(255, 255, 255, .12); color: #fff; }
@keyframes mtRoseBeat { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.07) rotate(-3deg); } }
@media (prefers-reduced-motion: reduce) { .mt-rose > img, .mt-rose > .mt-u { animation: none; } }

/* 06.10: редкость сочетания — отдельной строкой (на карточке — редкость самого подарка) */
.mt-u-combo { margin: 6px 0 0; font-size: .8rem; color: var(--mt-text-2, #cdbdd1); text-align: center; }
.mt-u-combo b { color: #ffd66b; }

/* ===== 06.10: улучшенные (уникальные) подарки — премиальная оправа: двойной металлический обод, свечение, постоянный блик ===== */
.mt-u:not(.mt-u-plain) {
    box-shadow: 0 0 0 2px #140a12, 0 0 0 4px var(--rim), 0 0 0 5px rgba(0, 0, 0, .45), 0 12px 30px -10px var(--rim2),
        inset 0 0 0 1px rgba(255, 255, 255, .18), inset 0 0 26px -8px var(--rim), inset 0 -18px 30px -18px rgba(0, 0, 0, .6) !important;
    margin: 5px;
}
.mt-u-md:not(.mt-u-plain) .mt-u-shine, .mt-u-sm:not(.mt-u-plain) .mt-u-shine, .mt-u-gc:not(.mt-u-plain) .mt-u-shine { animation: mtShine 4.2s ease-in-out infinite; }
.mt-u-lg:not(.mt-u-plain) { box-shadow: 0 0 0 3px #140a12, 0 0 0 6px var(--rim), 0 0 0 7px rgba(0, 0, 0, .45), 0 0 60px -6px var(--rim2), 0 24px 50px -18px rgba(0, 0, 0, .8),
    inset 0 0 0 1px rgba(255, 255, 255, .2), inset 0 0 40px -10px var(--rim) !important; animation: mtUGlow 3.6s ease-in-out infinite; }
@keyframes mtUGlow { 50% { filter: brightness(1.08) saturate(1.1); } }
/* легендарные — золотой пульс вокруг оправы */
.mt-u[data-tier="legendary"]:not(.mt-u-plain), .mt-u[data-tier="mythic"]:not(.mt-u-plain) { animation: mtULegend 2.8s ease-in-out infinite; }
@keyframes mtULegend { 0%, 100% { filter: drop-shadow(0 0 0 rgba(255, 207, 107, 0)); } 50% { filter: drop-shadow(0 0 10px rgba(255, 207, 107, .55)); } }
/* плашка уникального: корона и золото, в одну строку */
.mt-tier-u { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; color: #2b1300 !important;
    background-image: linear-gradient(135deg, #fff1a8, #f2c14e 45%, #ffd977 70%, #c48a1c) !important; box-shadow: 0 4px 14px -6px rgba(242, 193, 78, .9); }
.mt-tier-u svg { width: 13px; height: 13px; fill: #6b3d00; flex-shrink: 0; }
@media (prefers-reduced-motion: reduce) { .mt-u, .mt-u .mt-u-shine { animation: none !important; } }

.mt-u-lg:not(.mt-u-plain) { margin: 8px auto 14px !important; }   /* mt-u-lg центр: общая оправа сбивала отступы */

/* 06.10 (владелец: «почему легендарные отличаются обводкой»): рамка уникального подарка — по редкости, одинаковая для всех
   легендарных/эпических/…; отделка видна в характеристиках. Переопределяет цвета по отделке (data-model). */
.mt-u[data-tier="legendary"]:not(.mt-u-plain) { --rim: #f3d27a; --rim2: rgba(243, 210, 122, .5); }
.mt-u[data-tier="epic"]:not(.mt-u-plain) { --rim: #c49bff; --rim2: rgba(196, 155, 255, .45); }
.mt-u[data-tier="rare"]:not(.mt-u-plain) { --rim: #6aa0ff; --rim2: rgba(106, 160, 255, .4); }
.mt-u[data-tier="common"]:not(.mt-u-plain) { --rim: #e4e8ef; --rim2: rgba(228, 232, 239, .35); }
.mt-u[data-tier]:not([data-tier="mythic"]):not(.mt-u-plain)::before { display: none; }   /* радужный обод отделки «holo» — только у мифических */

/* 06.10 (владелец: «у двух легендарных по-разному обведено слово Легендарный»): плашка редкости одинаковая для одной редкости —
   у обычного и улучшенного подарка; уникальность видна по ленте «Эксклюзив» и оправе */
.mt-tier { display: inline-flex !important; align-items: center; gap: 5px; white-space: nowrap; font-weight: 800 !important; }
.mt-tier-u svg { display: none !important; }
.mt-tier[data-tier="common"] { color: #2b2b33 !important; background-image: linear-gradient(135deg, #f4f6fa, #c9ced8) !important; box-shadow: 0 4px 12px -6px rgba(228, 232, 239, .8) !important; }
.mt-tier[data-tier="rare"] { color: #fff !important; background-image: linear-gradient(135deg, #8cc8ff, #3b7bff) !important; box-shadow: 0 4px 12px -6px rgba(106, 160, 255, .9) !important; }
.mt-tier[data-tier="epic"] { color: #fff !important; background-image: linear-gradient(135deg, #d9b8ff, #8a4dff) !important; box-shadow: 0 4px 12px -6px rgba(196, 155, 255, .9) !important; }
.mt-tier[data-tier="legendary"] { color: #2b1300 !important; background-image: linear-gradient(135deg, #fff1a8, #f2c14e 45%, #ffd977 70%, #c48a1c) !important; box-shadow: 0 4px 14px -6px rgba(242, 193, 78, .9) !important; }
.mt-tier[data-tier="legendary"]::before { content: ''; width: 13px; height: 13px; flex-shrink: 0; background: #6b3d00; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 8l4.5 4L12 4l4.5 8L21 8l-2 11H5z'/%3E%3C/svg%3E") no-repeat center / contain; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 8l4.5 4L12 4l4.5 8L21 8l-2 11H5z'/%3E%3C/svg%3E") no-repeat center / contain; }

/* 06.10: Час Тайной комнаты */
.mt-hour { display: flex; align-items: center; gap: 12px; max-width: 520px; margin: 0 0 18px; padding: 12px 14px; border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 95, 162, .12), rgba(138, 43, 226, .1)); border: 1px solid rgba(255, 140, 195, .25); }
.mt-hour-ic { flex-shrink: 0; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .07); }
.mt-hour-ic svg { width: 21px; height: 21px; fill: none; stroke: #ffb3d4; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mt-hour-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mt-hour-t b { font-size: 14.5px; color: #fff; } .mt-hour-t small { font-size: 12.5px; color: #cdbdd1; line-height: 1.4; }
.mt-hour[data-st="live"] { border-color: rgba(255, 120, 180, .6); box-shadow: 0 0 0 1px rgba(255, 120, 180, .25), 0 8px 30px rgba(255, 70, 150, .18); }
.mt-hour[data-st="live"] .mt-hour-ic { background-image: linear-gradient(135deg, #ff6aa6, #d6377f); animation: mtHourPulse 1.8s ease-in-out infinite; }
.mt-hour[data-st="live"] .mt-hour-ic svg { stroke: #fff; }
@keyframes mtHourPulse { 50% { box-shadow: 0 0 0 7px rgba(255, 106, 166, 0); } 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 106, 166, .45); } }
@media (prefers-reduced-motion: reduce) { .mt-hour[data-st="live"] .mt-hour-ic { animation: none; } }

/* 07.10 (владелец: «на ПК Тайная комната маленькая»): на больших экранах шире и крупнее */
@media (min-width: 1300px) {
    .mt-app { max-width: 1400px; }
    .mt-hero-text { max-width: 640px; }
    .mt-app[data-state="chat"] { max-width: 880px; }
    .mt-app[data-state="chat"] .mt-msg { font-size: 16px; }
}

/* 07.10: баннер «Каждая встреча — новая история» целиком нажимается и живой */
.mt-story-card { cursor: pointer; overflow: hidden; transition: transform .25s ease, border-color .25s, box-shadow .25s; }
.mt-story-card:hover { transform: translateY(-3px); border-color: rgba(255, 140, 195, .5); box-shadow: 0 18px 40px -18px rgba(214, 51, 132, .7); }
.mt-story-card .mt-howbtn2::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.mt-story-card::before { content: ''; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; pointer-events: none;
    background: linear-gradient(100deg, transparent, rgba(255, 190, 225, .12), transparent); transform: skewX(-18deg); animation: mtStorySheen 6s ease-in-out infinite; }
@keyframes mtStorySheen { 0%, 55% { left: -40%; } 85%, 100% { left: 120%; } }
.mt-story-key { animation: mtKeyFloat 4s ease-in-out infinite; }
@keyframes mtKeyFloat { 50% { transform: translateY(-6px) rotate(-4deg); } }
.mt-story-letter { animation: mtLetter 5s ease-in-out infinite; }
@keyframes mtLetter { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(-3deg) translateY(-5px); } }
.mt-howbtn2 { position: static; display: inline-flex; align-items: center; gap: 8px; }
.mt-howbtn2::before { content: ''; order: 2; width: 8px; height: 8px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); animation: mtArrow 1.6s ease-in-out infinite; }
@keyframes mtArrow { 50% { transform: translateX(4px) rotate(45deg); } }
@media (prefers-reduced-motion: reduce) { .mt-story-card::before, .mt-story-key, .mt-story-letter, .mt-howbtn2::before { animation: none; } }
.mt-story-card .mt-howbtn2:active, .mt-story-card .mt-howbtn2:hover { transform: none; } .mt-story-card:active { transform: scale(.99); }


/* 07.10: плавная смена шага во всплывающем окне */
.mt-sheet-body.mt-swap { animation: mtSwap .28s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes mtSwap { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .mt-sheet-body.mt-swap { animation: none; } }

/* ===== 07.10 светлая тема (сгенерировано lightgen.py, правки — в генераторе) ===== */
html:not(.dark-theme) .mt-body { --mt-wine: #f4d8e6; --mt-bg: #f5f1f7; --mt-surface: rgba(241, 235, 243, 0.78); --mt-surface-2: rgba(237, 230, 240, 0.82); --mt-text: #3b233b; --mt-text-2: #705676; --mt-gold: #c28300; }
html:not(.dark-theme) .mt-ghost { border: 1px solid rgba(150, 40, 100, 0.196); background-color: rgba(150, 40, 100, 0.03); }
html:not(.dark-theme) .mt-ghost:hover { background-color: rgba(150, 40, 100, 0.06); }
html:not(.dark-theme) .mt-ghost .mt-moon { fill: #3b233b; }
html:not(.dark-theme) .mt-link:hover { color: #212121; }
html:not(.dark-theme) .mt-privacy { color: rgba(112, 86, 118, 0.7); }
html:not(.dark-theme) .mt-h2 { color: #212121; }
html:not(.dark-theme) .mt-mood-card { background-image: linear-gradient(180deg, rgba(242, 225, 237, 0.6), rgba(243, 237, 245, 0.85)); box-shadow: inset 0 1px 0 rgba(214, 51, 132, 0.015), 0 20px 40px -26px rgba(255, 60, 140, .6); }
html:not(.dark-theme) .mt-mood-card:hover { box-shadow: inset 0 1px 0 rgba(214, 51, 132, 0.02), 0 22px 44px -20px rgba(255, 60, 140, .9); }
html:not(.dark-theme) .mt-mi-talk { color: #c20055; }
html:not(.dark-theme) .mt-mi-surprise { color: #4e00c2; }
html:not(.dark-theme) .mt-story-card { background-image: linear-gradient(90deg, rgba(244, 227, 238, 0.85), rgba(244, 236, 245, 0.9)); }
html:not(.dark-theme) .mt-story-txt b { color: #c20053; }
html:not(.dark-theme) .mt-search-count { color: #c20054; }
html:not(.dark-theme) .mt-medal { background-image: radial-gradient(circle at 35% 30%, #e9d6ea, #efe9f4 70%); }
html:not(.dark-theme) .mt-medal[data-rarity="rare"] { box-shadow: inset 0 0 0 1.5px rgba(160, 120, 255, .6), 0 6px 18px -6px rgba(150, 60, 110, 0.198); }
html:not(.dark-theme) .mt-flash { background-image: radial-gradient(circle at 50% 45%, rgba(214, 51, 132, .35), rgba(245, 241, 247, 0.97) 60%); }
html:not(.dark-theme) .mt-flash-sub { color: #c2005f; }
html:not(.dark-theme) .mt-app[data-state="chat"] { background-image: radial-gradient(100% 60% at 50% 0%, rgba(244, 216, 230, 0.35), transparent 60%); background-color: #f4f0f6; }
html:not(.dark-theme) .mt-chat-head { background-color: rgba(244, 240, 246, 0.75); }
html:not(.dark-theme) .mt-them-txt small.mt-live { color: #22a058; }
html:not(.dark-theme) .mt-them-txt small.mt-lost { color: #c27200; }
html:not(.dark-theme) .mt-icon-btn:hover { background-color: rgba(150, 40, 100, 0.045); }
html:not(.dark-theme) .mt-gem-chip { color: #3b233b; background-color: rgba(150, 40, 100, 0.038); }
html:not(.dark-theme) .mt-secret { background-image: linear-gradient(135deg, rgba(243, 229, 240, 0.95), rgba(241, 235, 244, 0.95)); box-shadow: 0 16px 34px -20px rgba(150, 60, 110, 0.198); }
html:not(.dark-theme) .mt-secret-title { color: #212121; }
html:not(.dark-theme) .mt-secret-hint { color: rgba(112, 86, 118, 0.75); }
html:not(.dark-theme) .mt-secret[data-state="ready"] .mt-secret-txt, html:not(.dark-theme) .mt-secret[data-state="invited"] .mt-secret-txt { color: #c2005f; }
html:not(.dark-theme) .mt-secret-no { background-color: rgba(150, 40, 100, 0.06); }
html:not(.dark-theme) .mt-msg.them { background-color: rgba(234, 228, 237, 0.85); border: 1px solid rgba(150, 40, 100, 0.084); }
html:not(.dark-theme) .mt-event small { color: #c20054; }
html:not(.dark-theme) .mt-input { background-color: rgba(244, 240, 246, 0.8); }
html:not(.dark-theme) .mt-input textarea { border: 1px solid rgba(150, 40, 100, 0.14); background-color: rgba(150, 40, 100, 0.038); }
html:not(.dark-theme) .mt-send { color: #212121; background-color: rgba(150, 40, 100, 0.06); }
html:not(.dark-theme) .mt-giftbar { background-image: linear-gradient(180deg, rgba(240, 234, 243, 0.97), rgba(243, 238, 246, 0.97)); }
html:not(.dark-theme) .mt-giftbar-x { background-color: rgba(150, 40, 100, 0.045); color: #212121; }
html:not(.dark-theme) .mt-gcard { background-image: linear-gradient(180deg, rgba(240, 226, 237, 0.8), rgba(242, 236, 244, 0.95)); border: 1px solid rgba(150, 40, 100, 0.112); color: #3b233b; }
html:not(.dark-theme) .mt-gcard[data-rarity="EPIC"] { background-image: linear-gradient(180deg, rgba(220, 207, 238, 0.55), rgba(242, 236, 244, 0.95)); }
html:not(.dark-theme) .mt-gcard[data-rarity="LEGENDARY"] { background-image: linear-gradient(180deg, rgba(241, 227, 207, 0.45), rgba(242, 236, 244, 0.95)); }
html:not(.dark-theme) .mt-gcard-more i { color: #212121; }
html:not(.dark-theme) .mt-decide { background-image: linear-gradient(180deg, rgba(243, 229, 240, 0.97), rgba(243, 237, 245, 0.97)); }
html:not(.dark-theme) .mt-sheet-backdrop { background-color: rgba(245, 242, 250, 0.62); }
html:not(.dark-theme) .mt-sheet-card { color: #3b233b; background-image: linear-gradient(180deg, #efe7f1, #f3eef6); }
html:not(.dark-theme) .mt-sheet-x { background-color: rgba(150, 40, 100, 0.053); color: #212121; }
html:not(.dark-theme) .mt-sheet-body p { color: #705676; }
html:not(.dark-theme) .mt-opt-group > b { color: #3c2b48; }
html:not(.dark-theme) .mt-opt { border: 1px solid rgba(150, 40, 100, 0.168); background-color: rgba(150, 40, 100, 0.03); color: #3b233b; }
html:not(.dark-theme) .mt-age { color: #705676; }
html:not(.dark-theme) .mt-age input { border: 1px solid rgba(150, 40, 100, 0.168); background-color: rgba(150, 40, 100, 0.038); color: #212121; }
html:not(.dark-theme) .mt-menu-item { color: #3b233b; }
html:not(.dark-theme) .mt-menu-item:hover { background-color: rgba(150, 40, 100, 0.038); }
html:not(.dark-theme) .mt-menu-item.danger { color: #c2002b; }
html:not(.dark-theme) .mt-reasons label { background-color: rgba(150, 40, 100, 0.03); }
html:not(.dark-theme) .mt-gift-confirm .mt-price { color: #212121; }
html:not(.dark-theme) .mt-gift-confirm textarea { border: 1px solid rgba(150, 40, 100, 0.168); background-color: rgba(150, 40, 100, 0.038); color: #212121; }
html:not(.dark-theme) .mt-bal { color: #705676; }
html:not(.dark-theme) .mt-fx-dark { background-image: radial-gradient(circle at 50% 42%, rgba(244, 216, 230, 0.35), rgba(247, 242, 251, 0.85)); }
html:not(.dark-theme) .mt-messages.mt-starsky { background-image: radial-gradient(ellipse at 50% 0%, #e4dcf3, #f3f1f9 70%); }
html:not(.dark-theme) .mt-fx-eternal { background-image: radial-gradient(circle at 50% 45%, rgba(255, 106, 166, .45), rgba(246, 241, 250, 0.96) 65%); color: #212121; }
html:not(.dark-theme) .mt-fx-eternal button { color: rgba(33, 33, 33, 0.7); }
html:not(.dark-theme) .mt-toast { background-color: #efe7f1; color: #212121; box-shadow: 0 14px 30px -10px rgba(150, 60, 110, 0.154); }
html:not(.dark-theme) .mt-search .mt-expand { color: #c2005f; }
html:not(.dark-theme) .mt-gcard-free span { color: #12b055 !important; }
html:not(.dark-theme) .mt-share { color: #12b055 !important; }
html:not(.dark-theme) .mt-earn { background-image: linear-gradient(135deg, rgba(222, 241, 231, 0.45), rgba(244, 236, 245, 0.92)); border: 1px solid rgba(150, 40, 100, 0.42); }
html:not(.dark-theme) .mt-earn-nums span { color: #12b055; }
html:not(.dark-theme) .mt-addr { border: 1px solid rgba(150, 40, 100, 0.196); background-color: rgba(150, 40, 100, 0.038); color: #212121; }
html:not(.dark-theme) .mt-market-card { background-image: linear-gradient(135deg, rgba(241, 227, 207, 0.35), rgba(244, 236, 245, 0.92)); border: 1px solid rgba(150, 40, 100, 0.42); }
html:not(.dark-theme) .mt-tab { border: 1px solid rgba(150, 40, 100, 0.168); background-color: rgba(150, 40, 100, 0.03); color: #3b233b; }
html:not(.dark-theme) .mt-mk-card { color: #3b233b; background-image: linear-gradient(180deg, rgba(240, 226, 237, 0.8), rgba(242, 236, 244, 0.95)); border: 1px solid rgba(150, 40, 100, 0.112); }
html:not(.dark-theme) .mt-mk-card small { color: #705676; }
html:not(.dark-theme) .mt-mk-listed .mt-mk-floor { color: #12b055; }
html:not(.dark-theme) .mt-lots-head small { color: #705676; }
html:not(.dark-theme) .mt-lot { background-color: rgba(150, 40, 100, 0.03); border: 1px solid rgba(150, 40, 100, 0.098); }
html:not(.dark-theme) .mt-lot-deal { color: #12b055; }
html:not(.dark-theme) .mt-gcard-mine span { color: #12b055 !important; }
html:not(.dark-theme) .mt-how p { color: #3c2b48 !important; }
html:not(.dark-theme) .mt-serial { color: #705676; }
html:not(.dark-theme) .mt-tier { background-color: rgba(150, 40, 100, 0.06); color: #4c2f4e; }
html:not(.dark-theme) .mt-tier[data-tier="rare"] { color: #0065c2; }
html:not(.dark-theme) .mt-tier[data-tier="epic"] { color: #4a00c2; }
html:not(.dark-theme) .mt-tier[data-tier="legendary"] { color: #c28300; }
html:not(.dark-theme) .mt-ltd { color: #c28300; }
html:not(.dark-theme) .mt-ltd-out { color: #c20000; }
html:not(.dark-theme) .mt-ltd-line { color: #c28300 !important; }
html:not(.dark-theme) .mt-gcard-out span { color: #c20000 !important; }
html:not(.dark-theme) .mt-mk-u { background-image: linear-gradient(180deg, rgba(150, 40, 100, 0.06), rgba(150, 40, 100, 0.015)); }
html:not(.dark-theme) .mt-pin { background-color: rgba(150, 40, 100, 0.15); }
html:not(.dark-theme) .mt-pin svg { fill: #c28300; }
html:not(.dark-theme) .mt-coll { background-color: rgba(150, 40, 100, 0.03); color: #4c2f4e; }
html:not(.dark-theme) .mt-lot-info small { color: #705676; }
html:not(.dark-theme) .mt-show-btn { background-color: rgba(150, 40, 100, 0.06); color: #c28300; }
html:not(.dark-theme) .mt-gp-facts div { background-color: rgba(150, 40, 100, 0.03); }
html:not(.dark-theme) .mt-gp-facts small { color: #866a8b; }
html:not(.dark-theme) .mt-them-txt small.mt-gone { color: #c20000; }
html:not(.dark-theme) .mt-presence[data-k="off"] { color: #c27200; }
html:not(.dark-theme) .mt-presence[data-k="on"] { color: #22a058; }
html:not(.dark-theme) .mt-mk-intro { background-color: rgba(150, 40, 100, 0.053); border: 1px solid rgba(150, 40, 100, 0.28); }
html:not(.dark-theme) .mt-mk-intro span { color: #705676; }
html:not(.dark-theme) .mt-mk-h { color: #212121; }
html:not(.dark-theme) .mt-mk-none .mt-mk-floor { color: #866a8b; }
html:not(.dark-theme) .mt-mk-sell { color: #269c53 !important; }
html:not(.dark-theme) .mt-lot .mt-lot-deal { color: #12b055; }
html:not(.dark-theme) .mt-sell { border-top: 1px solid rgba(150, 40, 100, 0.112); }
html:not(.dark-theme) .mt-sell h5 { color: #212121; }
html:not(.dark-theme) .mt-sell-opt { background-color: rgba(150, 40, 100, 0.045); border: 1px solid rgba(150, 40, 100, 0.42); color: #3b233b; }
html:not(.dark-theme) .mt-sell-opt b { color: #12b055; }
html:not(.dark-theme) .mt-sell-opt + .mt-sell-opt b { color: #c20055; }
html:not(.dark-theme) .mt-sell-opt small { color: #705676; }
html:not(.dark-theme) .mt-quote { background-color: rgba(150, 40, 100, 0.077); }
html:not(.dark-theme) .mt-quote b { color: #c20055; }
html:not(.dark-theme) .mt-quote span { color: #4c2f4e; }
html:not(.dark-theme) .mt-reply { background-color: rgba(150, 40, 100, 0.045); }
html:not(.dark-theme) .mt-reply-txt b { color: #c20055; }
html:not(.dark-theme) .mt-reply-txt span { color: #4c2f4e; }
html:not(.dark-theme) .mt-sellnote { color: #12b055 !important; }
html:not(.dark-theme) .mt-sellnote svg { fill: #12b055; }
html:not(.dark-theme) .mt-market-say { background-color: rgba(150, 40, 100, 0.06); border: 1px solid rgba(150, 40, 100, 0.35); }
html:not(.dark-theme) .mt-market-say b { color: #12b055; }
html:not(.dark-theme) .mt-market-say span { color: #705676; }
html:not(.dark-theme) .mt-sell-link { color: #12b055 !important; }
html:not(.dark-theme) .mt-next-btn { border: 1px solid rgba(150, 40, 100, 0.224); background-color: rgba(150, 40, 100, 0.045); color: #3b233b; }
html:not(.dark-theme) .mt-saved-st { color: #c20055; }
html:not(.dark-theme) .mt-saved-st.on { color: #12b055; background-color: rgba(150, 40, 100, 0.09); }
html:not(.dark-theme) .mt-warn { color: #c27a00; }
html:not(.dark-theme) .mt-warn b { color: #c28300; }
html:not(.dark-theme) .mt-tr-cancel { color: #c20055; }
html:not(.dark-theme) .mt-qgifts { background-color: rgba(244, 240, 246, 0.8); }
html:not(.dark-theme) .mt-qg-lbl { color: #c20055; }
html:not(.dark-theme) .mt-qg { color: #3b233b; }
html:not(.dark-theme) .mt-qg-free { background-color: rgba(150, 40, 100, 0.075); }
html:not(.dark-theme) .mt-qg-free span { color: #12b055; }
html:not(.dark-theme) .mt-qg-all span { color: #705676; }
html:not(.dark-theme) .mt-presence[data-k="gift"] { color: #c28300; }
html:not(.dark-theme) .mt-pushask { background-color: #efe7f1; box-shadow: 0 16px 40px -10px rgba(150, 60, 110, 0.154); color: #3b233b; }
html:not(.dark-theme) .mt-pa-no { background-color: rgba(150, 40, 100, 0.06); color: #212121; }
html:not(.dark-theme) .mt-tglink { color: #006bc2 !important; }
html:not(.dark-theme) .mt-tglink svg { fill: #006bc2; }
html:not(.dark-theme) .mt-ice { background-color: rgba(244, 240, 246, 0.8); }
html:not(.dark-theme) .mt-ice-b { border: 1px solid rgba(150, 40, 100, 0.196); background-color: rgba(150, 40, 100, 0.038); color: #3b233b; }
html:not(.dark-theme) .mt-steps span { color: #705676; }
html:not(.dark-theme) .mt-steps b { color: #212121; }
html:not(.dark-theme) .mt-note { background-color: rgba(150, 40, 100, 0.034); border: 1px solid rgba(150, 40, 100, 0.112); color: #593f5e; }
html:not(.dark-theme) .mt-note-ic { color: #c20055; }
html:not(.dark-theme) .mt-note[data-k="away"] .mt-note-ic { color: #c27200; }
html:not(.dark-theme) .mt-note[data-k="back"] .mt-note-ic, html:not(.dark-theme) .mt-note[data-k="start"] .mt-note-ic { color: #12b055; }
html:not(.dark-theme) .mt-note[data-k="gem"] .mt-note-ic { color: #0046c2; }
html:not(.dark-theme) .mt-gc-who { color: #c20054; }
html:not(.dark-theme) .mt-gc-name { color: #212121; }
html:not(.dark-theme) .mt-gc-num { color: #c28300; background-color: rgba(150, 40, 100, 0.09); }
html:not(.dark-theme) .mt-qg-lbl { color: #866a8b; }
html:not(.dark-theme) .mt-qg { border: 1px solid rgba(150, 40, 100, 0.14); background-color: rgba(150, 40, 100, 0.038); }
html:not(.dark-theme) .mt-qg-all svg { fill: #c20055; }
html:not(.dark-theme) .mt-qg-t b { color: #212121; }
html:not(.dark-theme) .mt-qg-t small { color: #c20054; }
html:not(.dark-theme) .mt-qg-free { background-color: rgba(150, 40, 100, 0.06); }
html:not(.dark-theme) .mt-qg-free .mt-qg-t small { color: #12b055; }
html:not(.dark-theme) .mt-side-tg svg { fill: #006bc2; color: #006bc2; }
html:not(.dark-theme) .mt-initial { color: #212121; }
html:not(.dark-theme) .mt-saved-x { border: 1px solid rgba(150, 40, 100, 0.112); background-color: rgba(150, 40, 100, 0.022); color: var(--mt-text-2, #866a8b); }
html:not(.dark-theme) .mt-saved-x:hover, html:not(.dark-theme) .mt-saved-x:focus-visible { color: #c20027; }
html:not(.dark-theme) .mt-saved-ask { background-color: #f1ecf3; }
html:not(.dark-theme) .mt-saved-ask span { color: #3b233b; }
html:not(.dark-theme) .mt-saved-no { border: 1px solid rgba(150, 40, 100, 0.224); color: #3b233b; }
html:not(.dark-theme) .mt-saved-ask span small { color: #7c6282; }
html:not(.dark-theme) .mt-side-sell svg { color: #12b055; background-color: rgba(150, 40, 100, 0.09) !important; }
html:not(.dark-theme) .mt-howbtn2 { color: #212121; }
html:not(.dark-theme) .mt-rose { background-image: radial-gradient(120% 140% at 0% 0%, rgba(255, 95, 162, .26), transparent 60%), linear-gradient(135deg, rgba(244, 225, 237, 0.95), rgba(241, 233, 245, 0.95)); }
html:not(.dark-theme) .mt-rose-t b { color: #212121; }
html:not(.dark-theme) .mt-rose-t span { color: #593f5e; }
html:not(.dark-theme) .mt-rose-x { background-color: rgba(150, 40, 100, 0.045); color: #6a5070; }
html:not(.dark-theme) .mt-rose-x:hover { background-color: rgba(150, 40, 100, 0.09); color: #212121; }
html:not(.dark-theme) .mt-tier[data-tier="common"] { box-shadow: 0 4px 12px -6px rgba(214, 51, 132, 0.2) !important; }
html:not(.dark-theme) .mt-tier[data-tier="legendary"]::before { background-color: #f4e8d8; }
html:not(.dark-theme) .mt-story-card::before { background-image: linear-gradient(100deg, transparent, rgba(150, 40, 100, 0.09), transparent); }
html:not(.dark-theme) .mt-hero { --mt-text: #f6eef6; --mt-text-2: #c4b3c8; --mt-surface: rgba(30, 20, 34, .78); --mt-surface-2: rgba(44, 30, 50, .82); --mt-line: rgba(255, 170, 210, .12); --mt-gold: #ffcf6b; }
/* ===== /светлая тема ===== */

/* 07.10: картинка обычного подарка — на всю рамку и по центру во всех окнах (правило улучшенных её сжимало в угол) */
.mt-u.mt-u-plain img, .mt-gift-confirm .mt-u.mt-u-plain img, .mt-mk-card .mt-u.mt-u-plain img, .mt-giftmsg .mt-u.mt-u-plain img {
    left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; object-fit: contain; }

/* 07.10: мифические подарки — переливающаяся рамка и свечение */
.mt-gcard[data-rarity="MYTHIC"], .mt-mk-card[data-rarity="MYTHIC"] { position: relative; border-color: transparent;
    background: linear-gradient(180deg, rgba(60, 22, 70, .65), rgba(28, 18, 32, .95)) padding-box,
                linear-gradient(120deg, #ff5fa2, #ffcf6b, #8cc8ff, #c78bff, #ff5fa2) border-box;
    background-size: 100% 100%, 300% 300%; animation: mtMythBorder 6s linear infinite; box-shadow: 0 0 22px -6px rgba(199, 139, 255, .7); }
.mt-gcard[data-rarity="MYTHIC"] span { color: #ffd9f0; }
@keyframes mtMythBorder { to { background-position: 0 0, 300% 0; } }
.mt-tier[data-tier="mythic"] { background-size: 200% 100%; animation: mtMythTier 4s linear infinite; }
@keyframes mtMythTier { to { background-position: 200% 0; } }
@media (prefers-reduced-motion: reduce) { .mt-gcard[data-rarity="MYTHIC"], .mt-mk-card[data-rarity="MYTHIC"], .mt-tier[data-tier="mythic"] { animation: none; } }
html:not(.dark-theme) .mt-gcard[data-rarity="MYTHIC"] { background: linear-gradient(180deg, rgba(246, 236, 252, .95), rgba(242, 236, 244, .98)) padding-box,
    linear-gradient(120deg, #ff5fa2, #ffcf6b, #8cc8ff, #c78bff, #ff5fa2) border-box; background-size: 100% 100%, 300% 300%; }

/* 11.10: светлая тема — зелёный темнее (контраст был 2,3) */
html:not(.dark-theme) .mt-market-say b { color: #0b7a3a; }
