

@import url("https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&display=swap");
/* =============================================================================
   Общий UI-слой продающих страниц МАНГО (home / birthday / play).
   Кнопки, display-шрифт, яркие акценты. Не трогает legacy .btn в site.css.
   ============================================================================= */

.mp-display,
.mp-btn,
.birthday-button {
    font-family: var(--mp-display);
}

/**
 * Pill CTA — единый паттерн с birthday.
 * На главной: class="mp-btn mp-btn--green". На birthday: birthday-button (алиас).
 */
.mp-btn,
.birthday-button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    padding: 10px 18px;
    border: 0;
    border-radius: var(--mp-radius-full);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: filter 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.mp-btn:hover,
.birthday-button:hover {
    color: #fff;
    filter: brightness(1.05);
    text-decoration: none;
}

.mp-btn--block { width: 100%; }

/* birthday исторически тянет кнопки на 100% ширины контейнера */
.birthday-button { width: 100%; }
.birthday-button--sm { width: auto; }

.mp-btn--orange,
.birthday-button--orange { background: var(--mp-orange); }

.mp-btn--green,
.birthday-button--green { background: var(--mp-green-bright); }

.mp-btn--pink,
.birthday-button--pink { background: var(--mp-pink); }

.mp-btn--blue,
.birthday-button--blue { background: var(--mp-blue); }

.mp-btn--whatsapp,
.birthday-button--whatsapp { background: #25d366; }

.mp-btn--sm,
.birthday-button--sm {
    min-height: 40px;
    width: auto;
    padding: 6px 14px;
    font-size: 14px;
}

.mp-btn--outline,
.birthday-button--outline {
    border: 1.5px solid var(--mp-orange);
    color: var(--mp-orange-dark);
    background: #fff;
}

.mp-btn--outline:hover,
.birthday-button--outline:hover {
    color: var(--mp-orange-dark);
    background: var(--mp-peach-light);
    filter: none;
}

.mp-btn--outline-green {
    border: 1.5px solid var(--mp-green-bright);
    color: var(--mp-green-bright);
    background: #fff;
}

.mp-btn--outline-green:hover {
    color: var(--mp-green-bright);
    background: var(--mp-green-light);
    filter: none;
}

@media (prefers-reduced-motion: reduce) {
    .mp-btn,
    .birthday-button {
        transition: none;
    }
}

/* =============================================================================
   Заглушка «страница в разработке» — views/partials/wip_stub.hbs + static/js/mp-wip-stub.js
   Mobile: bottom sheet; от 640px: центрированная карточка.
   ============================================================================= */

html.mp-wip-lock { overflow: hidden; }

.mp-wip {
    width: min(100%, 460px);
    max-width: 100%;
    max-height: 100dvh;
    margin: auto auto 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--mp-text);
    font-family: var(--mp-font);
    overflow: visible;
}

.mp-wip:not([open]) { display: none; }

.mp-wip::backdrop {
    background: rgba(42, 16, 72, 0.55);
    backdrop-filter: blur(4px);
    animation: mp-wip-fade 0.25s ease both;
}

.mp-wip__card {
    position: relative;
    max-height: 100dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: var(--mp-radius-md) var(--mp-radius-md) 0 0;
    background: var(--mp-surface);
    box-shadow: 0 -8px 40px rgba(42, 16, 72, 0.25);
    animation: mp-wip-sheet 0.35s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}

@media (min-width: 640px) {
    .mp-wip { margin: auto; }
    .mp-wip__card {
        border-radius: var(--mp-radius-md);
        box-shadow: 0 24px 64px rgba(42, 16, 72, 0.35);
        animation-name: mp-wip-pop;
    }
}

.mp-wip__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: var(--mp-radius-full);
    background: rgba(255, 255, 255, 0.85);
    color: var(--mp-text);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.mp-wip__close:hover { background: #fff; transform: rotate(90deg); }
.mp-wip__close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }

/* --- hero --- */
.mp-wip__hero {
    position: relative;
    display: grid;
    place-items: center;
    padding: 36px 20px 28px;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.55), transparent 45%),
        linear-gradient(135deg, var(--mp-peach) 0%, var(--mp-orange) 100%);
}

.mp-wip__dot { position: absolute; border-radius: 50%; opacity: 0.85; animation: mp-wip-float 5s ease-in-out infinite; }
.mp-wip__dot--1 { top: 18%; left: 12%; width: 14px; height: 14px; background: var(--mp-yellow); }
.mp-wip__dot--2 { bottom: 20%; left: 22%; width: 10px; height: 10px; background: var(--mp-pink); animation-delay: -1.5s; }
.mp-wip__dot--3 { top: 30%; right: 14%; width: 12px; height: 12px; background: var(--mp-violet); animation-delay: -3s; }

.mp-wip__spark { position: absolute; fill: #fff; opacity: 0.9; animation: mp-wip-twinkle 2.6s ease-in-out infinite; }
.mp-wip__spark--1 { top: 16%; right: 22%; width: 26px; height: 26px; }
.mp-wip__spark--2 { bottom: 16%; right: 10%; width: 16px; height: 16px; animation-delay: -1.3s; }

.mp-wip__photo {
    position: relative;
    width: 150px;
    aspect-ratio: 4 / 5;
    padding: 8px 8px 22px;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(42, 16, 72, 0.3);
    transform: rotate(-4deg);
    animation: mp-wip-photo 0.6s 0.15s cubic-bezier(0.2, 0.9, 0.3, 1.3) both;
}

.mp-wip__photo[hidden] { display: none; }
.mp-wip__photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; display: block; }

.mp-wip__photo--empty { display: grid; place-items: center; background: rgba(255, 255, 255, 0.9); }
.mp-wip__photo--empty[hidden] { display: none; }
.mp-wip__photo--empty svg { width: 64px; height: 64px; fill: var(--mp-orange); }

.mp-wip__sticker {
    position: absolute;
    right: -14px;
    bottom: -8px;
    padding: 6px 12px;
    border-radius: var(--mp-radius-full);
    background: var(--mp-violet);
    color: #fff;
    font: 700 13px/1 var(--mp-display);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transform: rotate(6deg);
    box-shadow: 0 6px 14px rgba(123, 47, 224, 0.4);
}

/* --- body --- */
.mp-wip__body { padding: 22px 22px calc(24px + env(safe-area-inset-bottom)); text-align: center; }

.mp-wip__kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    padding: 6px 14px;
    border-radius: var(--mp-radius-full);
    background: var(--mp-violet-light);
    color: var(--mp-violet);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.mp-wip__pulse { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: mp-wip-pulse 1.6s ease-out infinite; }

.mp-wip__title {
    margin: 0;
    font: 700 clamp(24px, 6vw, 30px) / 1.15 var(--mp-display);
    text-transform: none;
    letter-spacing: 0;
    color: var(--mp-text);
}

.mp-wip__period { margin: 6px 0 0; color: var(--mp-orange-dark); font-weight: 700; font-size: 15px; }
.mp-wip__period[hidden] { display: none; }
.mp-wip__lead { margin: 12px 0 16px; color: var(--mp-gray-600); font-size: 15px; line-height: 1.5; }

.mp-wip__bar { height: 8px; margin: 0 auto 18px; border-radius: var(--mp-radius-full); background: var(--mp-gray-100); overflow: hidden; }
.mp-wip__bar span {
    display: block;
    width: 45%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--mp-orange), var(--mp-yellow), var(--mp-orange));
    background-size: 200% 100%;
    animation: mp-wip-bar 2.2s ease-in-out infinite alternate, mp-wip-shine 1.6s linear infinite;
}

.mp-wip__ask { margin: 0 0 10px; color: var(--mp-muted); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }

.mp-wip__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.mp-wip__chips li {
    padding: 8px 14px;
    border-radius: var(--mp-radius-full);
    background: var(--mp-peach-light);
    color: var(--mp-orange-dark);
    font-size: 14px;
    font-weight: 600;
    animation: mp-wip-chip 0.4s both;
}
.mp-wip__chips li:nth-child(1) { animation-delay: 0.25s; }
.mp-wip__chips li:nth-child(2) { animation-delay: 0.32s; }
.mp-wip__chips li:nth-child(3) { animation-delay: 0.39s; }
.mp-wip__chips li:nth-child(4) { animation-delay: 0.46s; }
.mp-wip__chips li:nth-child(5) { animation-delay: 0.53s; }

.mp-wip__cta { width: 100%; min-height: 56px; font-size: 18px; box-shadow: 0 10px 24px rgba(239, 127, 26, 0.4); animation: mp-wip-cta 2.8s 1s ease-in-out infinite; }
.mp-wip__cta img { border-radius: 6px; }
.mp-wip__arrow { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s ease; }
.mp-wip__cta:hover .mp-wip__arrow { transform: translateX(4px); }

.mp-wip__later {
    min-height: 48px;
    margin-top: 6px;
    padding: 0 16px;
    border: 0;
    background: none;
    color: var(--mp-muted);
    font: 600 15px var(--mp-font);
    cursor: pointer;
    transition: color 0.2s ease;
}
.mp-wip__later:hover { color: var(--mp-text); }
.mp-wip__note { margin: 2px 0 0; color: var(--mp-muted); font-size: 12px; }

@keyframes mp-wip-fade { from { opacity: 0; } }
@keyframes mp-wip-sheet { from { transform: translateY(40px); opacity: 0; } }
@keyframes mp-wip-pop { from { transform: translateY(16px) scale(0.94); opacity: 0; } }
@keyframes mp-wip-photo { from { transform: rotate(-14deg) scale(0.6); opacity: 0; } }
@keyframes mp-wip-float { 50% { transform: translateY(-10px); } }
@keyframes mp-wip-twinkle { 50% { transform: scale(0.6) rotate(20deg); opacity: 0.4; } }
@keyframes mp-wip-pulse { 0% { box-shadow: 0 0 0 0 rgba(123, 47, 224, 0.5); } 100% { box-shadow: 0 0 0 9px rgba(123, 47, 224, 0); } }
@keyframes mp-wip-bar { from { width: 35%; } to { width: 85%; } }
@keyframes mp-wip-shine { to { background-position: -200% 0; } }
@keyframes mp-wip-chip { from { transform: translateY(8px); opacity: 0; } }
@keyframes mp-wip-cta { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.025); } }

@media (prefers-reduced-motion: reduce) {
    .mp-wip *,
    .mp-wip__card,
    .mp-wip::backdrop { animation: none !important; transition: none !important; }
}

/* Заглушка: mobile-first компактность (до 639px) */
@media (max-width: 639px) {
    .mp-wip__close { top: 8px; right: 8px; width: 44px; height: 44px; }
    .mp-wip__hero { padding: 22px 16px 16px; }
    .mp-wip__photo { width: 104px; padding: 6px 6px 16px; }
    .mp-wip__sticker { right: -12px; bottom: -6px; padding: 5px 10px; font-size: 11px; }
    .mp-wip__spark--1 { width: 20px; height: 20px; }
    .mp-wip__body { padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); }
    .mp-wip__kicker { margin-bottom: 8px; padding: 5px 12px; font-size: 11px; }
    .mp-wip__title { font-size: 22px; }
    .mp-wip__period { margin-top: 4px; font-size: 14px; }
    .mp-wip__lead { margin: 8px 0 12px; font-size: 14px; line-height: 1.4; }
    .mp-wip__bar { height: 6px; margin-bottom: 12px; }
    .mp-wip__ask,
    .mp-wip__note,
    .mp-wip__chips li:nth-child(n+5) { display: none; }
    .mp-wip__chips { gap: 6px; margin-bottom: 14px; }
    .mp-wip__chips li { padding: 6px 12px; font-size: 13px; }
    .mp-wip__cta { min-height: 52px; font-size: 17px; }
    .mp-wip__later { min-height: 44px; margin-top: 2px; font-size: 14px; }
}

/* Заглушка на мобилке: модалка по центру с отступами по краям */
@media (max-width: 639px) {
    .mp-wip { width: calc(100% - 32px); max-height: calc(100dvh - 32px); margin: auto; }
    .mp-wip__card {
        max-height: calc(100dvh - 32px);
        border-radius: var(--mp-radius-md);
        box-shadow: 0 16px 48px rgba(42, 16, 72, 0.35);
        animation-name: mp-wip-pop;
    }
    .mp-wip__body { padding-bottom: 14px; }
}
