/* ===== MOBILE APP — мобильный лендинг app.barsokot.ru ===== */
/* Палитра наследует основной сайт: тёмный фон, зелёный акцент #3dff23 */

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

.mapp {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: #0d0d1a;
    background-image: radial-gradient(circle at 50% 0%, #1d1d3a 0%, #0d0d1a 55%);
    background-attachment: fixed;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ===== HERO ===== */
.mapp-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 20px 26px;
    position: relative;
}

.mapp-mascot {
    width: 148px;
    height: 148px;
    object-fit: contain;
    filter: drop-shadow(0 8px 28px rgba(61, 255, 35, 0.35));
    animation: mappFloat 4s ease-in-out infinite;
}

@keyframes mappFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.mapp-logo {
    margin: 12px 0 2px;
    font-size: 40px;
    font-weight: 900;
    letter-spacing: 1px;
    line-height: 1;
}

.mapp-logo-cat { color: #3dff23; text-shadow: 0 0 20px rgba(61,255,35,0.7); }

.mapp-tagline {
    margin: 6px 0 0;
    font-size: 14px;
    color: #9aa0b5;
    letter-spacing: 0.3px;
}

/* ===== КНОПКИ ===== */
.mapp-hero-cta {
    display: flex;
    gap: 10px;
    margin-top: 22px;
    width: 100%;
    max-width: 340px;
}

.mapp-btn {
    flex: 1;
    border: none;
    border-radius: 16px;
    padding: 16px 18px;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
    min-height: 52px;
}

.mapp-btn:active { transform: scale(0.97); }

.mapp-btn--primary {
    background: linear-gradient(135deg, #3dff23 0%, #10e910 100%);
    color: #0d0d1a;
    box-shadow: 0 6px 22px rgba(61, 255, 35, 0.4);
}

.mapp-btn--ghost {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.22);
}

.mapp-btn--wide { width: 100%; max-width: 340px; margin-top: 6px; }

/* ===== USER CHIP (авторизован) ===== */
.mapp-user-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 10px 18px;
    background: rgba(61, 255, 35, 0.1);
    border: 1px solid rgba(61, 255, 35, 0.35);
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
}

.mapp-user-dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: #3dff23;
    box-shadow: 0 0 10px #3dff23;
    animation: mappPulse 2s infinite;
}

@keyframes mappPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ===== СЕКЦИИ ===== */
.mapp-section {
    padding: 24px 20px;
    max-width: 520px;
    margin: 0 auto;
}

.mapp-section--accent {
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.mapp-h2 {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 800;
}

.mapp-lead {
    margin: 0 0 18px;
    font-size: 15.5px;
    line-height: 1.6;
    color: #c7cbdb;
}

.mapp-lead strong { color: #3dff23; }
.mapp-lead--tight { margin-bottom: 14px; }

/* ===== КАРТОЧКИ ===== */
.mapp-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 18px;
}

.mapp-card {
    display: grid;
    grid-template-columns: 52px 1fr;
    grid-template-rows: auto auto;
    column-gap: 14px;
    align-items: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    transition: transform 0.15s ease, border-color 0.2s ease;
}

.mapp-card:active { transform: scale(0.98); border-color: rgba(61,255,35,0.4); }

.mapp-card img {
    grid-row: 1 / 3;
    width: 52px; height: 52px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(61, 255, 35, 0.4));
}

.mapp-card-t { font-size: 16.5px; font-weight: 700; }
.mapp-card-d { font-size: 13px; color: #9aa0b5; }

/* ===== ССЫЛКА ===== */
.mapp-link {
    display: inline-block;
    color: #3dff23;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    padding: 6px 0;
}

/* ===== КОНТАКТЫ ===== */
.mapp-contacts {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mapp-contact {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    text-decoration: none;
    color: #fff;
    transition: transform 0.15s ease, border-color 0.2s ease;
}

.mapp-contact:active { transform: scale(0.98); border-color: rgba(61,255,35,0.4); }

.mapp-contact-ic {
    font-size: 24px;
    width: 46px; height: 46px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(61, 255, 35, 0.1);
    border-radius: 14px;
    flex-shrink: 0;
}

.mapp-contact-body { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.mapp-contact-t { font-size: 15.5px; font-weight: 700; }
.mapp-contact-d { font-size: 12.5px; color: #9aa0b5; }
.mapp-contact-arrow { color: #3dff23; font-size: 20px; flex-shrink: 0; }

/* ===== FOOTER ===== */
.mapp-footer {
    text-align: center;
    padding: 28px 20px 36px;
    font-size: 12px;
    color: #5a5f75;
}

/* ===== МОДАЛКИ: адаптив под мобилку ===== */
.mapp .modal-content {
    width: calc(100vw - 32px);
    max-width: 400px;
    border-radius: 20px;
}

.mapp .modal-content input {
    font-size: 16px; /* iOS: не зумит при фокусе */
}

@media (min-width: 560px) {
    .mapp-logo { font-size: 46px; }
    .mapp-mascot { width: 170px; height: 170px; }
    .mapp-cards { flex-direction: row; flex-wrap: wrap; }
    .mapp-card { flex: 1 1 46%; }
}

/* ===== КВАНТОВАЯ МОЗАИКА (анимация под текстом) ===== */
.mapp-quantum {
    position: relative;
    width: 100%;
    height: 172px;
    margin: 18px 0 6px;
    border-radius: 18px;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, rgba(120, 90, 255, 0.14), rgba(10, 12, 28, 0.0) 70%);
    border: 1px solid rgba(140, 120, 255, 0.18);
}

.mapp-quantum canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* мягкое свечение-суперпозиция вокруг блока */
.mapp-quantum::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%, rgba(150, 120, 255, 0.10), transparent 65%);
    animation: mapp-quantum-pulse 4.5s ease-in-out infinite;
}

@keyframes mapp-quantum-pulse {
    0%, 100% { opacity: 0.45; }
    50%      { opacity: 0.95; }
}

@media (prefers-reduced-motion: reduce) {
    .mapp-quantum::after { animation: none; }
}

/* ===== ГАМБУРГЕР + ДРОВЕР ===== */
.mapp-burger {
    position: fixed;
    top: 14px; left: 14px;
    z-index: 1200;
    width: 44px; height: 44px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 5px;
    border: 1px solid rgba(61,255,35,0.35);
    border-radius: 12px;
    background: rgba(13,13,26,0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
    padding: 0;
}
.mapp-burger span {
    display: block;
    width: 22px; height: 2px;
    border-radius: 2px;
    background: #3dff23;
    box-shadow: 0 0 8px rgba(61,255,35,0.7);
    transition: transform .25s ease, opacity .25s ease;
}
.mapp-drawer-overlay {
    position: fixed; inset: 0;
    z-index: 1300;
    background: rgba(0,0,0,0.55);
    opacity: 0; visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}
.mapp-drawer-overlay.open { opacity: 1; visibility: visible; }

.mapp-drawer {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 1400;
    width: min(82vw, 320px);
    display: flex; flex-direction: column;
    padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
    background: linear-gradient(160deg, #14142b 0%, #0d0d1a 100%);
    border-right: 1px solid rgba(61,255,35,0.22);
    box-shadow: 8px 0 40px rgba(0,0,0,0.6);
    transform: translateX(-105%);
    transition: transform .28s cubic-bezier(.4,0,.2,1);
    overflow-y: auto;
}
.mapp-drawer.open { transform: translateX(0); }

.mapp-drawer-head {
    display: flex; align-items: center; justify-content: space-between;
    padding-bottom: 14px; margin-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mapp-drawer-title {
    font-size: 14px; letter-spacing: 2px; text-transform: uppercase;
    color: #3dff23; font-weight: 700;
}
.mapp-drawer-close {
    border: none; background: transparent;
    color: rgba(255,255,255,0.6);
    font-size: 28px; line-height: 1;
    cursor: pointer; padding: 0 4px;
}
.mapp-drawer-close:hover { color: #fff; }

.mapp-drawer-item {
    display: flex; align-items: center; gap: 12px;
    padding: 13px 12px;
    margin: 3px 0;
    border-radius: 12px;
    color: #e8e8f5; text-decoration: none;
    font-size: 15px;
    transition: background .18s ease, color .18s ease;
}
.mapp-drawer-item:hover, .mapp-drawer-item:active {
    background: rgba(61,255,35,0.12);
    color: #fff;
}
.mapp-drawer-item--danger { color: #ff6b6b; }
.mapp-drawer-item--danger:hover { background: rgba(255,107,107,0.14); }
.mapp-drawer-ic { font-size: 18px; width: 22px; text-align: center; }
img.mapp-drawer-ic { object-fit: contain; image-rendering: -webkit-optimize-contrast; filter: drop-shadow(0 0 4px rgba(61,255,35,0.35)); }

.mapp-drawer-foot {
    margin-top: auto; padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.mapp-drawer-social {
    display: block; text-align: center;
    padding: 11px; border-radius: 12px;
    background: rgba(61,255,35,0.12);
    color: #3dff23; text-decoration: none;
    font-size: 14px;
}
.mapp-drawer-social:hover { background: rgba(61,255,35,0.2); }

/* ===== ВЫБОР АВАТАРА В ПРОФИЛЕ ===== */
.mapp-avatars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 8px;
}
.mapp-avatar {
    padding: 0;
    width: 100%;
    aspect-ratio: 1 / 1;
    border: 2px solid rgba(255,255,255,0.10);
    border-radius: 14px;
    background: rgba(255,255,255,0.04);
    cursor: pointer;
    overflow: hidden;
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.mapp-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mapp-avatar:active { transform: scale(0.94); }
.mapp-avatar.selected {
    border-color: #3dff23;
    box-shadow: 0 0 0 2px rgba(61,255,35,0.35), 0 0 16px rgba(61,255,35,0.5);
}

/* ===== АВАТАР В ЧИПЕ (правый верх) ===== */
.mapp-hero { position: relative; }
.mapp-user-chip {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.mapp-chip-av {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #3dff23;
    box-shadow: 0 0 10px rgba(61,255,35,0.5);
    display: block;
}
/* фиксируем чип в правом верхнем углу героя */
.mapp-hero > .mapp-user-chip {
    position: absolute;
    top: 12px;
    right: 12px;
    margin: 0;
}

/* ===== ЧИП: ТОЛЬКО АВАТАР (правый верх) ===== */
.mapp-user-chip--ava {
    padding: 0;
    background: none;
    gap: 0;
}
.mapp-user-chip--ava .mapp-chip-av {
    width: 40px;
    height: 40px;
    border-width: 2px;
}
