/* Общий фон секции (можно добавить ваш паттерн с креветками) */
.recipe-stub-section {
    padding: 80px 0;
    background-color: #f8f9fa; /* Светлый фон */
    overflow: hidden; /* Чтобы наклоненные карты не создавали скролл */
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Контейнер для карт */
.mystery-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px; /* Расстояние между картами */
    flex-wrap: wrap;
    padding: 40px 0;
}

/* Обертка карты (отвечает за наклон из JSON) */
.mystery-card-wrapper {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1;
}

/* Эффект при наведении: карта выпрямляется и увеличивается */
.mystery-card-wrapper:hover {
    transform: rotate(0deg) scale(1.1) !important; /* !important перебивает inline стиль */
    z-index: 10;
    cursor: help;
}

/* Сама карта */
.mystery-card {
    width: 220px;
    height: 320px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: 8px solid #ffffff; /* Белая рамка */
    position: relative;
    overflow: hidden;
}

/* Внутренняя часть для декора */
.card-inner {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%); /* Синий градиент */
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Паттерн (линии) на рубашке карты */
.card-inner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.05) 0px, rgba(255,255,255,0.05) 10px, transparent 10px, transparent 20px);
}

.card-front {
    text-align: center;
    color: white;
    z-index: 2;
}

/* Знак вопроса */
.question-mark {
    font-size: 8rem;
    font-weight: 900;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    font-family: 'Times New Roman', serif; /* Или ваш фирменный шрифт */
    opacity: 0.9;
}

/* Подпись под знаком */
.card-label {
    margin-top: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(0,0,0,0.2);
    padding: 5px 10px;
    border-radius: 4px;
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .mystery-container {
        gap: 20px;
    }

    /* На мобильных уменьшаем поворот или убираем его, если мешает */
    .mystery-card-wrapper {
        margin-bottom: 20px;
    }
}