/* Footer mini-game wizard */

.footer-minigame {
    max-width: 640px;
    margin: 0 auto 48px;
    padding: 28px 28px 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(255, 122, 24, 0.1) 0%, rgba(255, 255, 255, 0.03) 45%);
    text-align: center;
}

.footer-minigame__head {
    max-width: 520px;
    margin: 0 auto 24px;
}

.footer-minigame__eyebrow {
    margin: 0 0 8px;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-accent);
}

.footer-minigame__title {
    margin: 0 0 8px;
    font-size: clamp(20px, 3vw, 26px);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-white);
}

.footer-minigame__lead {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-gray-medium);
}

.footer-minigame__wizard {
    max-width: 420px;
    margin: 0 auto;
    text-align: left;
}

.footer-minigame__panel--result {
    text-align: center;
}

.footer-minigame__progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.footer-minigame__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: background 0.25s ease, transform 0.25s ease;
}

.footer-minigame__dot.is-active {
    background: var(--color-accent);
    transform: scale(1.15);
}

.footer-minigame__panel {
    display: none;
}

.footer-minigame__panel.is-active {
    display: block;
    animation: footerMinigameStepIn 0.35s ease;
}

@keyframes footerMinigameStepIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-minigame__names {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

.footer-minigame__names label {
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.footer-minigame__names input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.35);
    color: var(--color-white);
    font: inherit;
    font-size: 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.footer-minigame__names input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.footer-minigame__names input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 2px rgba(255, 77, 0, 0.28);
}

.footer-minigame__names input.is-error {
    border-color: #ff6b6b;
    box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.25);
}

.footer-minigame__couple {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 600;
    color: var(--color-white);
    text-align: center;
}

.footer-minigame__panel-hint {
    margin: 0 0 18px;
    font-size: 13px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
}

.footer-minigame__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    background: var(--color-accent);
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.footer-minigame__btn:hover {
    background: #ff6624;
}

.footer-minigame__btn:active {
    transform: scale(0.98);
}

.footer-minigame__btn--ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: var(--color-white);
}

.footer-minigame__btn--ghost:hover {
    border-color: var(--color-accent);
    background: rgba(255, 77, 0, 0.12);
}

.footer-minigame__btn--next {
    width: 100%;
    padding: 14px 20px;
    font-size: 15px;
}

.footer-minigame__heartbeat {
    animation: footerMinigameHeartbeat 1.35s ease-in-out infinite;
}

@keyframes footerMinigameHeartbeat {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 77, 0, 0.45);
    }
    14% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 77, 0, 0);
    }
    28% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 77, 0, 0);
    }
    42% {
        transform: scale(1.035);
        box-shadow: 0 0 0 8px rgba(255, 77, 0, 0);
    }
    70% {
        transform: scale(1);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 77, 0, 0);
    }
}

.footer-minigame__category {
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-accent);
    text-align: center;
}

.footer-minigame__visual {
    margin: 0 auto 18px;
    max-width: 420px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.25);
}

.footer-minigame__visual.is-revealed {
    animation: footerMinigameReveal 0.45s ease;
}

.footer-minigame__image {
    display: block;
    width: 100%;
    max-height: 260px;
    object-fit: cover;
}

.footer-minigame__result {
    margin: 0 0 18px;
    font-size: clamp(16px, 2.4vw, 19px);
    line-height: 1.55;
    color: var(--color-white);
    text-align: center;
}

.footer-minigame__result.is-revealed {
    animation: footerMinigameReveal 0.45s ease;
}

@keyframes footerMinigameReveal {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-minigame__actions {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
}

.footer-minigame__btn--retry {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 320px;
}

.footer-minigame__share {
    flex: 0 0 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    background: transparent;
    color: var(--color-white);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.footer-minigame__share:hover {
    border-color: var(--color-accent);
    background: rgba(255, 77, 0, 0.12);
}

.footer-minigame__share:active {
    transform: scale(0.96);
}

.footer-minigame__share-icon {
    display: block;
}

.footer-minigame__share-icon--done {
    display: none;
}

.footer-minigame__share.is-done {
    border-color: rgba(120, 220, 120, 0.6);
    color: #b8f0b8;
}

.footer-minigame__share.is-done .footer-minigame__share-icon--share {
    display: none;
}

.footer-minigame__share.is-done .footer-minigame__share-icon--done {
    display: block;
}

.footer-minigame__hint {
    margin: 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-minigame__btn.is-done {
    border-color: rgba(120, 220, 120, 0.6);
    color: #b8f0b8;
}

.footer-minigame__error {
    margin: 0 0 12px;
    font-size: 13px;
    color: #ff8f8f;
}

@media (max-width: 768px) {
    .footer-minigame {
        padding: 22px 18px 26px;
        margin-bottom: 36px;
    }

    .footer-minigame__btn--retry {
        max-width: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .footer-minigame__panel.is-active,
    .footer-minigame__result.is-revealed,
    .footer-minigame__visual.is-revealed,
    .footer-minigame__heartbeat {
        animation: none;
    }
}
